Skip to content

Commit

Permalink
Add PHPUnit test action
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-93 authored Dec 27, 2024
1 parent ec715ca commit a8cacd1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: PHPUnit tests
on:
push

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1', '8.2', '8.3', '8.4' ]
name: On PHP ${{ matrix.php }}

steps:
- uses: actions/checkout@v4

- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Install dependencies (latest)
run: composer install --prefer-dist --no-progress

- name: Run test suite (latest)
run: ./vendor/bin/phpunit

- name: Install dependencies (lowest)
run: composer update --prefer-lowest --no-progress

- name: Run test suite (lowest)
run: ./vendor/bin/phpunit

0 comments on commit a8cacd1

Please sign in to comment.