Merge pull request #161 from digitalcube/develop #286
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |