Skip to content

Add unit tests & GitHub action. #48

Add unit tests & GitHub action.

Add unit tests & GitHub action. #48

Workflow file for this run

name: Verify
on:
pull_request:
branches:
- master
push:
branches:
- master
schedule:
- cron: '20 4 * * *'
jobs:
lint:
name: Run PHP linter validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: firehed/lint-php-action@v1
test:
name: Test with PHP ${{ matrix.version.php }}
runs-on: ubuntu-latest
strategy:
matrix:
version:
- php: "8.1"
phpunit: "10.5"
- php: "8.2"
phpunit: "11.3"
steps:
- uses: actions/checkout@v4
- uses: php-actions/composer@v5
with:
php_version: ${{ matrix.version.php }}
version: ${{ matrix.version.phpunit }}
- uses: php-actions/phpunit@v4
with:
args: tests