Skip to content

Commit

Permalink
chore: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Feb 11, 2024
1 parent ec49179 commit 370219d
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,31 @@ on:
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.3']
include:
- php-version: '8.1'
dependency-version: 'lowest'
- php-version: '8.3'
dependency-version: 'highest'
steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php_extensions: dom fileinfo filter libxml xmlreader zip gd
- uses: php-actions/phpunit@v3
php-version: ${{ matrix.php-version }}
extensions: dom fileinfo filter libxml xmlreader zip gd
tools: phpunit:10.5.8

- name: Install dependencies
uses: ramsey/composer-install@v2
with:
version: 10.5.8
php_extensions: xdebug dom fileinfo filter libxml xmlreader zip gd
args: --coverage-text
env:
XDEBUG_MODE: coverage
dependency-versions: ${{ matrix.dependency-version }}

- name: PHPUnit
run: vendor/bin/phpunit

0 comments on commit 370219d

Please sign in to comment.