Skip to content

Commit

Permalink
#3 add tests pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhoelzel committed Mar 8, 2024
1 parent b4df27d commit de30b1d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tests

on:
pull_request:
workflow_dispatch:

jobs:
tests:
name: "PHP ${{ matrix.php-version }}"
runs-on: ubuntu-latest
continue-on-error: false
strategy:
matrix:
php-version: ['8.2', '8.3']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- name: Checkout code
uses: actions/checkout@v3
- name: Install Dependencies
run: composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
- name: Run tests
run: vendor/bin/phpunit


0 comments on commit de30b1d

Please sign in to comment.