Skip to content

Commit

Permalink
Add PHPUnit CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
veteran29 committed Nov 23, 2023
1 parent 3d9d6cb commit 9c9526b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: PHPUnit

on:
pull_request:
push:

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php:
- '8.1'
- '8.2'
symfony:
- '5.4.*'
- '6.4.*'
- '7.0.*'
exclude:
- php: '8.1'
symfony: '7.0.*' # requires PHP ^8.2.0

runs-on: ${{ matrix.os }}

env:
SYMFONY: ${{ matrix.symfony }}

steps:
- uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: date.timezone='UTC'
tools: composer:v2

- name: Require symfony
run: composer --no-update require symfony/symfony:"${SYMFONY}"

- name: Install dependencies
run: |
composer update
vendor/bin/simple-phpunit install
- name: Test
run: |
composer validate --strict --no-check-lock
vendor/bin/simple-phpunit --coverage-text --verbose

0 comments on commit 9c9526b

Please sign in to comment.