chore: improve workflow performance #164
Workflow file for this run
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 | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v5 | |
- name: Install Node.js | |
uses: actions/setup-node@v5 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Enable Corepack | |
run: | | |
corepack enable | |
corepack use pnpm@10.17.0 | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Lint | |
run: pnpm run lint | |
- name: Typecheck | |
run: pnpm run typecheck | |
- name: Demo typecheck | |
run: pnpm run dev:typecheck | |
- name: Install Playwright browsers | |
run: | | |
if ! pnpm exec playwright install chromium; then | |
echo "Retrying with --with-deps after initial failure..." | |
pnpm exec playwright install --with-deps chromium | |
fi | |
- name: Test with coverage | |
run: pnpm run test:coverage | |
- name: Build | |
run: pnpm run build | |
- name: Publint | |
run: pnpm run publint | |
- name: Upload coverage to Codecov | |
if: ${{ github.event_name == 'pull_request' || github.ref == 'refs/heads/main' }} | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: coverage/browser/lcov.info | |
disable_search: true |