Skip to content

Execute Goss tests

Execute Goss tests #9

Workflow file for this run

name: goss-tests
run-name: Execute Goss tests
env:
REGISTRY: ghcr.io
on:
workflow_run:
workflows: ["Build and deploy Bay images"]
types: [completed]
workflow_dispatch:
push:
jobs:
goss-test:
runs-on: ubuntu-latest
strategy:
matrix:
images: ["php-cli"]
type:
- php
steps:
- uses: actions/checkout@v3
- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
with:
images: |
${{ env.REGISTRY }}/${{ github.repository }}/${{ matrix.images }}
tags: |
type=ref,event=branch
- name: Install Goss
uses: e1himself/[email protected]
- name: Execute Goss tests
working-directory: ./tests
run: |
ls -al .
GOSS_FILES_STRATEGY=cp GOSS_FILE=goss.${{ matrix.type }}_goss.yaml bash -c 'dgoss run -i ${{ steps.meta.outputs.tags }}'