Adds github test action

main
Yasen Pramatarov 2025-02-20 10:43:23 +02:00
parent f0b487ca36
commit 9d5f87d86f
1 changed files with 30 additions and 0 deletions

30
.github/workflows/tests.yml vendored 100644
View File

@ -0,0 +1,30 @@
name: PHP Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: pdo, pdo_sqlite
- name: Install dependencies
run: |
cd tests
composer install
- name: Run test suite
run: |
cd tests
./vendor/bin/phpunit