2023-01-09 07:43:17 +00:00
|
|
|
name: Unit Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
pull_request:
|
|
|
|
branches: [main]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-test:
|
|
|
|
runs-on: ubuntu-latest
|
2023-01-14 23:50:05 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
php_version: [8.0, 8.1, 8.2]
|
2023-01-09 07:43:17 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: php-actions/composer@v6
|
|
|
|
- run: |
|
2023-03-07 10:09:32 +00:00
|
|
|
cp ./tests/Includes/Config.yaml ./src/Config/Config.yaml
|
2023-01-09 07:43:17 +00:00
|
|
|
- uses: php-actions/phpunit@v3
|
2023-01-09 07:49:17 +00:00
|
|
|
with:
|
|
|
|
bootstrap: src/Vendor/autoload.php
|
2023-01-14 23:50:05 +00:00
|
|
|
php_version: ${{ matrix.php_version }}
|
2023-01-09 07:43:17 +00:00
|
|
|
args: "tests"
|