Skip to content

Commit

Permalink
Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
darylldoyle committed Jul 25, 2024
1 parent 1319ee2 commit fece087
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PHPUnit

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
fail-fast: false

steps:
- uses: actions/checkout@v3

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

- name: Validate composer.json
run: composer validate

- name: Lint PHP
run: |
find . -name '*.php' -not -path './vendor/*' -print0 | xargs -0 -n1 -P4 php -dxdebug.mode=off -l
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: composer run-script phpunit

0 comments on commit fece087

Please sign in to comment.