Files
doona/.github/workflows/check.yml
T
Zakk 923527343c ci(check): run each check once
pnpm check ran the unit tests and test:coverage ran them again; CI now runs check's other steps one by one and the tests once under coverage.
2026-09-26 04:47:54 +10:00

52 lines
1.4 KiB
YAML

name: Check
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
# pnpm check's steps, with the unit tests run once, under coverage.
- run: pnpm typecheck
- run: pnpm lint
- run: pnpm check:i18n
- run: pnpm format:check
- run: pnpm test:coverage
- run: pnpm check:gen
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/lcov.info
if-no-files-found: error
- run: pnpm build
- run: pnpm check:size
- name: Read Playwright version
id: playwright
run: echo "version=$(node -p "require('./package.json').devDependencies['@playwright/test']")" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright.outputs.version }}
- run: pnpm e2e:install --with-deps
- run: pnpm e2e
env:
DOONA_E2E_WEBKIT: '1'
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: test-results/