Removed visual regression tests #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Build & accessibility | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build CSS | |
| run: npm run build | |
| - name: Start wp-env | |
| run: npx wp-env start | |
| - name: Seed content | |
| run: bash tests/seed.sh | |
| - name: Install Playwright browser | |
| run: npx playwright install --with-deps chromium | |
| - name: Accessibility tests | |
| run: npm run test:a11y | |
| env: | |
| CI: true | |
| TEST_BASE_URL: http://localhost:8888 | |
| - name: Upload report on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report | |
| path: | | |
| playwright-report/ | |
| test-results/ | |
| retention-days: 7 |