Skip to content

Commit

Permalink
Add PHPUnit tests to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cracksalad committed Nov 20, 2023
1 parent a57e2f6 commit ad796e8
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- "8.0"
- "8.1"
- "8.2"
experimental:
- false

name: "Test: PHP ${{ matrix.php }}"

steps:
- uses: actions/checkout@v3
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- uses: php-actions/composer@v6
with:
dev: no
php_version: "${{ matrix.php }}"
- uses: php-actions/phpunit@v3
with:
version: 9
php_version: "${{ matrix.php }}"
args: --coverage-text

0 comments on commit ad796e8

Please sign in to comment.