Fix the 8.0'er tests. #538
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: [ main, develop, 'feature/**' ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
env: | |
- { php: 7.4, coverage: no } | |
- { php: 8.0, coverage: no } | |
- { php: 8.1, coverage: no } | |
- { php: 8.2, coverage: no } | |
- { php: 8.3, coverage: no } | |
- { php: 8.4, coverage: yes } | |
steps: | |
- name: Switch PHP Version | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.env.php }} | |
coverage: xdebug | |
- uses: actions/checkout@v4 | |
- name: Validate composer.json | |
run: composer validate --strict | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Build without coverage | |
if: ${{ matrix.env.coverage == 'no' }} | |
run: composer test | |
- name: Build | |
if: ${{ matrix.env.coverage == 'yes' }} | |
run: composer test-coverage | |
- name: publish code coverage | |
uses: paambaati/[email protected] | |
if: ${{ matrix.env.coverage == 'yes' && env.BRANCH_NAME == 'main'}} | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATEKEY }} |