Automatische Updates, Browser-Tests, CI grün (0.63.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Has been skipped
CI / PHP 8.4 / mariadb:10.6 (pull_request) Has been skipped
CI / PHP 8.3 / mariadb:11.4 (pull_request) Has been skipped
CI / PHP 8.4 / mariadb:11.4 (pull_request) Has been skipped
CI / PHP 8.3 / mysql:8.0 (pull_request) Has been skipped
CI / PHP 8.4 / mysql:8.0 (pull_request) Has been skipped
CI / PHP 8.3 / mysql:8.4 (pull_request) Has been skipped
CI / PHP 8.4 / mysql:8.4 (pull_request) Has been skipped
CI / Browser-Tests (pull_request) Failing after 7m34s
CI / PHP 8.3 / mysql:8.4-1 (pull_request) Successful in 11m55s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 16m43s
CI / Build-Artefakte aktuell (pull_request) Successful in 13m17s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Has been skipped
CI / PHP 8.4 / mariadb:10.6 (pull_request) Has been skipped
CI / PHP 8.3 / mariadb:11.4 (pull_request) Has been skipped
CI / PHP 8.4 / mariadb:11.4 (pull_request) Has been skipped
CI / PHP 8.3 / mysql:8.0 (pull_request) Has been skipped
CI / PHP 8.4 / mysql:8.0 (pull_request) Has been skipped
CI / PHP 8.3 / mysql:8.4 (pull_request) Has been skipped
CI / PHP 8.4 / mysql:8.4 (pull_request) Has been skipped
CI / Browser-Tests (pull_request) Failing after 7m34s
CI / PHP 8.3 / mysql:8.4-1 (pull_request) Successful in 11m55s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 16m43s
CI / Build-Artefakte aktuell (pull_request) Successful in 13m17s
- Opt-in „Updates automatisch installieren“ (AutoUpdate, alle 10 Minuten) - Playwright-Tests in tests/Browser, CI-Job „Browser-Tests“ - CI: volle Matrix nur auf main, PRs mit einem MySQL-Job - MySQL-JSON-Reihenfolge in zwei Tests, QM-Suchausschnitt ohne <mark>, h1 auf Startseite/Editor Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3027a60275
commit
e211db9f30
158 changed files with 774 additions and 378 deletions
|
|
@ -6,8 +6,10 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
# Volle Matrix nur auf main – der Server hat wenig Speicher; Pull Requests prüft „tests-quick“
|
||||
tests:
|
||||
name: PHP ${{ matrix.php }} / ${{ matrix.db }}
|
||||
if: github.event_name == 'push'
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
@ -51,6 +53,111 @@ jobs:
|
|||
- run: vendor-dev/bin/phpunit
|
||||
- run: vendor-dev/bin/pint --test
|
||||
|
||||
# MySQL, weil es JSON-Schlüssel anders sortiert als MariaDB (lokal entwickelt wird mit MariaDB)
|
||||
tests-quick:
|
||||
name: PHP ${{ matrix.php }} / ${{ matrix.db }}
|
||||
if: github.event_name == 'pull_request'
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php: ['8.3']
|
||||
db: ['mysql:8.4']
|
||||
services:
|
||||
db:
|
||||
image: ${{ matrix.db }}
|
||||
env:
|
||||
MYSQL_DATABASE: inhaus_test
|
||||
MYSQL_USER: inhaus
|
||||
MYSQL_PASSWORD: inhaus
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MARIADB_DATABASE: inhaus_test
|
||||
MARIADB_USER: inhaus
|
||||
MARIADB_PASSWORD: inhaus
|
||||
MARIADB_ROOT_PASSWORD: root
|
||||
env:
|
||||
DB_HOST: db
|
||||
DB_PORT: 3306
|
||||
DB_USERNAME: inhaus
|
||||
DB_PASSWORD: inhaus
|
||||
COMPOSER_VENDOR_DIR: vendor-dev
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
extensions: intl, zip, gd, pdo_mysql, bcmath, exif
|
||||
coverage: none
|
||||
- run: composer install --no-interaction --no-progress
|
||||
- run: cp .env.example .env && php artisan key:generate
|
||||
- name: Auf Datenbank warten
|
||||
run: |
|
||||
for i in $(seq 1 30); do
|
||||
php -r 'try { new PDO("mysql:host=db;port=3306", "inhaus", "inhaus"); exit(0); } catch (Exception $e) { exit(1); }' && exit 0
|
||||
sleep 2
|
||||
done
|
||||
exit 1
|
||||
- run: vendor-dev/bin/phpunit
|
||||
- run: vendor-dev/bin/pint --test
|
||||
|
||||
browser:
|
||||
name: Browser-Tests
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
db:
|
||||
image: mariadb:11.4
|
||||
env:
|
||||
MARIADB_DATABASE: inhaus
|
||||
MARIADB_USER: inhaus
|
||||
MARIADB_PASSWORD: inhaus
|
||||
MARIADB_ROOT_PASSWORD: root
|
||||
env:
|
||||
DB_HOST: db
|
||||
DB_PORT: 3306
|
||||
DB_DATABASE: inhaus
|
||||
DB_USERNAME: inhaus
|
||||
DB_PASSWORD: inhaus
|
||||
COMPOSER_VENDOR_DIR: vendor-dev
|
||||
CI: '1'
|
||||
steps:
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: https://github.com/shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.3'
|
||||
extensions: intl, zip, gd, pdo_mysql, bcmath, exif
|
||||
coverage: none
|
||||
- uses: https://code.forgejo.org/actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
- run: composer install --no-interaction --no-progress
|
||||
- run: cp .env.example .env && php artisan key:generate
|
||||
- name: Auf Datenbank warten
|
||||
run: |
|
||||
for i in $(seq 1 30); do
|
||||
php -r 'try { new PDO("mysql:host=db;port=3306", "inhaus", "inhaus"); exit(0); } catch (Exception $e) { exit(1); }' && exit 0
|
||||
sleep 2
|
||||
done
|
||||
exit 1
|
||||
- name: Datenbank mit Demo-Inhalten
|
||||
run: php artisan migrate --seed --force
|
||||
- run: npm ci --no-audit --no-fund
|
||||
- run: npx playwright install --with-deps chromium
|
||||
- name: Portal starten
|
||||
run: |
|
||||
nohup php artisan serve --host=127.0.0.1 --port=8765 > storage/logs/serve.log 2>&1 &
|
||||
for i in $(seq 1 30); do curl -sf -o /dev/null http://127.0.0.1:8765/login && exit 0; sleep 1; done
|
||||
cat storage/logs/serve.log; exit 1
|
||||
- run: npx playwright test
|
||||
- name: Bericht bei Fehlern
|
||||
if: failure()
|
||||
uses: https://code.forgejo.org/actions/upload-artifact@v3
|
||||
with:
|
||||
name: playwright-bericht
|
||||
path: |
|
||||
storage/playwright-report
|
||||
storage/playwright-results
|
||||
storage/logs
|
||||
|
||||
audit:
|
||||
name: Bekannte Sicherheitslücken in Paketen
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue