Fix CI workflow (#47) #75
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: Continous Integration | |
on: | |
push: | |
branches: | |
- master | |
- '[0-9]+\-[0-9]+\-x' | |
pull_request: | |
jobs: | |
integration: | |
name: Integration tests | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
php-version: [ 7.4 ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP Environment | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Composer install | |
run: composer install | |
- name: Check PHP CS | |
run: ./vendor/bin/php-cs-fixer fix --config .php-cs-fixer.php --dry-run --using-cache no --show-progress dots -v | |
- name: Test | |
run: ./vendor/bin/phpunit --coverage-cobertura=coverage.xml | |
- name: Code Coverage | |
uses: irongut/[email protected] | |
with: | |
filename: coverage.xml | |
badge: true | |
format: 'markdown' | |
output: 'both' | |
- name: Write to Job Summary | |
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY | |