Skip to content

Commit

Permalink
chore: add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemilloy committed Apr 21, 2024
1 parent 6175608 commit 7ec6ed6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test
on:
pull_request:
branches:
- master
jobs:
phpunit:
name: PHPUnit
timeout-minutes: 10
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
steps:
- name: 🛎 Checkout
uses: actions/checkout@v4

- name: 🏗 Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug

- name: 🔨 Install composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: 🧪 Run tests
run: ./vendor/bin/phpunit

0 comments on commit 7ec6ed6

Please sign in to comment.