feat: update version to * #29
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: PHP | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php: 8.0 | |
- php: 8.1 | |
- php: 8.2 | |
coverage: '--coverage --coverage-xml' | |
name: PHP ${{ matrix.php }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 10 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: xdebug | |
- name: Validate composer.json | |
run: composer validate | |
- name: Install dependencies | |
run: composer update --prefer-dist --no-progress --no-suggest | |
- name: Run Codeception | |
run: vendor/bin/codecept run ${{ matrix.coverage }} | |
- name: Upload coverage to Scrutinizer | |
if: ${{ matrix.coverage }} | |
uses: sudo-bot/action-scrutinizer@latest | |
with: | |
cli-args: "--format=php-clover build/logs/clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}" | |