ci: add PHPUnit pipeline (#65)
All checks were successful
Deploy Feature Branch to Test / PHP Syntax Check (push) Successful in 1m32s
Lint / PHP Syntax Check (push) Successful in 1m32s
Deploy Feature Branch to Test / HTML Lint (htmlhint) (push) Successful in 2m12s
Deploy Feature Branch to Test / CSS Lint (stylelint) (push) Successful in 2m17s
Lint / HTML Lint (htmlhint) (push) Successful in 1m16s
Lint / CSS Lint (stylelint) (push) Successful in 1m19s
PHPUnit / PHP Unit Tests (push) Successful in 42s
Deploy Feature Branch to Test / Deploy to Test Environment (push) Successful in 29s
Lint / PHP Syntax Check (pull_request) Successful in 59s
PHPUnit / PHP Unit Tests (pull_request) Successful in 1m7s
Lint / HTML Lint (htmlhint) (pull_request) Successful in 1m37s
Lint / CSS Lint (stylelint) (pull_request) Successful in 1m41s
All checks were successful
Deploy Feature Branch to Test / PHP Syntax Check (push) Successful in 1m32s
Lint / PHP Syntax Check (push) Successful in 1m32s
Deploy Feature Branch to Test / HTML Lint (htmlhint) (push) Successful in 2m12s
Deploy Feature Branch to Test / CSS Lint (stylelint) (push) Successful in 2m17s
Lint / HTML Lint (htmlhint) (push) Successful in 1m16s
Lint / CSS Lint (stylelint) (push) Successful in 1m19s
PHPUnit / PHP Unit Tests (push) Successful in 42s
Deploy Feature Branch to Test / Deploy to Test Environment (push) Successful in 29s
Lint / PHP Syntax Check (pull_request) Successful in 59s
PHPUnit / PHP Unit Tests (pull_request) Successful in 1m7s
Lint / HTML Lint (htmlhint) (pull_request) Successful in 1m37s
Lint / CSS Lint (stylelint) (pull_request) Successful in 1m41s
Neue Gitea-CI-Pipeline analog zur bestehenden lint.yml: - Trigger auf push und pull_request - Installiert PHP + Composer + Extensions (xml, mbstring) - Fuehrt 'composer install' und 'vendor/bin/phpunit' aus - 18 Tests / 31 Assertions gruen
This commit is contained in:
25
.gitea/workflows/phpunit.yml
Normal file
25
.gitea/workflows/phpunit.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: PHPUnit
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
phpunit:
|
||||||
|
name: PHP Unit Tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install PHP & Composer
|
||||||
|
run: |
|
||||||
|
apt-get update -qq
|
||||||
|
apt-get install -y -qq php-cli php-xml php-mbstring composer > /dev/null 2>&1
|
||||||
|
php --version
|
||||||
|
composer --version
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: composer install --no-interaction --prefer-dist --no-progress
|
||||||
|
|
||||||
|
- name: Run PHPUnit
|
||||||
|
run: vendor/bin/phpunit
|
||||||
Reference in New Issue
Block a user