Skip to content

Commit

Permalink
Create GitHub test action
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl authored Jan 7, 2025
1 parent d31bde2 commit 4138ff1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: PHPUnit

on:
pull_request:
push:

permissions:
contents: read

jobs:
build:
name: PHPUnit
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Composer install
run: composer install
- name: PHPUnit / PHP ${{ matrix.php-version }}
run: ./vendor/bin/phpunit

0 comments on commit 4138ff1

Please sign in to comment.