Skip to content

PoC: verify css-coverage in CI #28

PoC: verify css-coverage in CI

PoC: verify css-coverage in CI #28

Workflow file for this run

name: Playwright Tests
on:
pull_request:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
jobs:
test:
name: Playwright end-to-end tests
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v5
with:
cache: 'npm'
- name: Install dependencies
run: npm install --no-fund --no-audit --ignore-scripts
- name: Install Playwright Browsers
run: npx playwright install chromium --no-shell
- name: Run Playwright tests
run: npx playwright test --forbid-only
- name: Store Playwright test results
uses: actions/upload-artifact@v4
with:
name: css-coverage
path: css-coverage/*.json
retention-days: 30
css-coverage:
name: Verify CSS Code Coverage
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v5
with:
cache: 'npm'
node-version: '>=22.18.0'
- name: Install dependencies
run: npm install --no-fund --no-audit --ignore-scripts
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: css-coverage
path: ./css-coverage
- name: Analyze CSS Code Coverage
run: node scripts/analyze-css-coverage.ts --minLineCoverage=0.85 --showUncovered