Merge pull request #8 from robertvanlienden/feature/phpstan #14
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build Docker image | |
run: | | |
docker build -f development/Dockerfile -t php-ci . | |
- name: Run codestyle tests | |
run: | | |
docker run --rm php-ci vendor/bin/ecs --config=development/tooling/ecs.php | |
- name: Run PHPStan | |
run: | | |
docker run --rm php-ci vendor/bin/phpstan --configuration=./development/tooling/phpstan.neon | |
- name: Run unit tests | |
run: | | |
docker run --rm php-ci vendor/bin/phpunit -c development/tooling/phpunit.xml --testdox tests |