Skip to content

3.0 rc

3.0 rc #13

Workflow file for this run

name: Tests w/ coverage
on:
pull_request:
branches:
- '**'
push:
branches:
- master
jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php-version:
- 8.1
- 8.2
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: pcov
ini-values: zend.assertions=1, assert.exception=1
php-version: ${{ matrix.php-version }}
tools: cs2pr
- name: Install dependencies with Composer
uses: ramsey/composer-install@v2
- name: Run PHPUnit
run: |
export $ENV
vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage.xml
flags: phpunit-${{ matrix.php-version }}
name: phpunit-${{ matrix.php-version }}