-
Notifications
You must be signed in to change notification settings - Fork 5
28 lines (27 loc) · 831 Bytes
/
phpunit.yml
File metadata and controls
28 lines (27 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
on: push
jobs:
test:
name: Run tests in PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ["8.1", "8.2", "8.3", "8.4"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install dependencies
run: composer install
- name: Run Linter
run: vendor/bin/php-cs-fixer fix -v --dry-run
- name: Execute test suite
run: composer test
- name: Send coverage to Scrutinizer CI
if: ${{ always() && matrix.php-version == '8.4' }}
run: |
php vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage.xml