AntCMS/.github/workflows/unittests.yml

26 lines
536 B
YAML
Raw Normal View History

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
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: |
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
php_version: ${{ matrix.php_version }}
2023-01-09 07:43:17 +00:00
args: "tests"