Skip to content

Commit

Permalink
Setup Github Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemoehre authored Oct 15, 2024
1 parent e40c8b4 commit a9fb27a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
php: ['latest', '8.1', '7.4']

runs-on: ${{ matrix.os }}
name: Test on ${{ matrix.os }}, PHP ${{ matrix.php }}

steps:
- uses: actions/checkout@v4
- uses: php-actions/composer@v6

- name: PHPUnit tests
uses: php-actions/phpunit@v4
with:
php_version: ${{ matrix.php }}

0 comments on commit a9fb27a

Please sign in to comment.