Add workflow for testing
All checks were successful
phpunit / Integration Tests (push) Successful in 10m16s
All checks were successful
phpunit / Integration Tests (push) Successful in 10m16s
This commit is contained in:
41
.gitea/workflows/phpunit.yaml
Normal file
41
.gitea/workflows/phpunit.yaml
Normal file
@ -0,0 +1,41 @@
|
||||
|
||||
name: phpunit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: Integration Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: "latest"
|
||||
tools: phpunit-bridge
|
||||
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
|
||||
coverage: xdebug
|
||||
-
|
||||
name: Cache composer dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
key: ${{ runner.OS }}-composer-cache
|
||||
path: ~/.cache/composer
|
||||
#note: hashFiles is broken with act_runner;
|
||||
# ${{ hashFiles('**/composer.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.OS }}-composer-cache
|
||||
-
|
||||
name: Install dependencies
|
||||
run: APP_ENV=test composer install --no-progress --no-interaction --ansi
|
||||
-
|
||||
name: Run tests
|
||||
shell: bash
|
||||
run: vendor/bin/phpunit --testdox
|
Reference in New Issue
Block a user