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 committed Oct 15, 2024
1 parent e40c8b4 commit 06dce16
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

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

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 06dce16

Please sign in to comment.