# Gitea Actions (act_runner). Requires a runner with label "ubuntu-latest". # Instance: enable [actions] in app.ini; repo: Settings → Actions → enabled. # If checkout/setup actions fail offline, set DEFAULT_ACTIONS_URL = github (or mirror actions). name: Tests on: push: pull_request: jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: '8.4' extensions: pdo_sqlite, openssl, json coverage: none - uses: actions/setup-node@v4 with: node-version: '20' - name: Install dependencies run: | composer install --no-interaction npm install npm install --prefix website - name: Install Playwright browser run: npx playwright install --with-deps chromium - name: PHPUnit run: composer test - name: Website unit tests (Vitest) run: npm run test:unit --prefix website - name: End-to-end tests (Playwright) run: CI=true npm run test:e2e env: QDB_MASTER_KEY: dGVzdC1tYXN0ZXIta2V5LXRoaXQtMzJieXRzIQ==