Skip to content

Merge pull request #166 from digitalcube/develop #304

Merge pull request #166 from digitalcube/develop

Merge pull request #166 from digitalcube/develop #304

Workflow file for this run

name: PHPCS
on: push
env:
# TODO: Change variable to your image's name.
IMAGE_NAME: headless-plugins
jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
if [ -f docker-compose.test.yml ]; then
docker-compose --file docker-compose.test.yml build
docker-compose --file docker-compose.test.yml run -e REPORT=1 sut
else
docker build . --file Dockerfile
fi
- name: PHPCS Reports
uses: actions/upload-artifact@v2
with:
name: phpcs-report
path: test/results/