Skip to content

Commit

Permalink
Adding test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ActuallyConnor committed Sep 26, 2024
1 parent aa68bfc commit 6f4bf44
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Test

on:
push:
branches:
- main
pull_request:

jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: phpunit

- name: Run tests - phpunit
run: |
composer install
./vendor/bin/phpunit --configuration phpunit.xml.dist tests/Unit

0 comments on commit 6f4bf44

Please sign in to comment.