james d67a54a6b2
Some checks failed
Run Unit Tests / test (push) Failing after 1m31s
new src
2025-05-30 20:57:14 +08:00

26 lines
605 B
YAML

name: Run Unit Tests
on:
push:
branches:
- main
- develop
pull_request:
jobs:
test:
runs-on: phpunit_test
container: php:8.1-cli-alpine
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
apk add --no-cache git unzip
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
composer install --no-interaction --prefer-dist
- name: Run PHPUnit tests
run: |
vendor/bin/phpunit --configuration phpunit.xml