Added PHP 8.3 to the list of versions to run tests on #22
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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | |
on: | |
push: | |
pull_request: | |
name: PHPUnit | |
permissions: | |
contents: read | |
jobs: | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- php: '8.1' | |
- php: '8.2' | |
- php: '8.3' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
- name: Install dependencies with Composer | |
run: composer update --no-ansi --no-interaction --no-progress | |
- name: Run tests | |
run: ./vendor/bin/phpunit | |
code-coverage: | |
name: Code Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: pcov | |
tools: composer:v2 | |
- name: Install dependencies with Composer | |
run: composer update --no-ansi --no-interaction --no-progress | |
- name: Collect code coverage with phpunit | |
run: ./vendor/bin/phpunit --coverage-clover=coverage.xml | |
- name: Send code coverage report to Codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |