ci(wpmc S6): Gitea Actions workflow for PHPUnit on push/PR

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vladimir Bryzgalov
2026-05-17 00:09:59 +05:00
parent 015ba57ab0
commit fba5c8a976
+34
View File
@@ -0,0 +1,34 @@
name: tests
on:
push:
branches: [main]
pull_request:
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP 8.0
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
coverage: none
tools: composer:v2
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php8.0-${{ hashFiles('composer.json') }}
restore-keys: |
${{ runner.os }}-php8.0-
- name: Install dependencies
run: composer install --no-progress --prefer-dist --no-interaction
- name: Run PHPUnit
run: vendor/bin/phpunit