Skip to content

Commit

Permalink
feature: require passing phpunit tests on pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimorillo committed Feb 29, 2024
1 parent 15a3051 commit a7ef01a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PHPUnit Tests

on:
pull_request:
branches:
- develop

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'

- name: Install dependencies
run: composer install

- name: Run PHPUnit tests
run: vendor/bin/phpunit

0 comments on commit a7ef01a

Please sign in to comment.