Skip to content

Ignore the vitest coverage report #5

Ignore the vitest coverage report

Ignore the vitest coverage report #5

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm test
- run: pnpm build
workers:
name: cloudflare worker fixture
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm install --frozen-lockfile
working-directory: fixtures/worker
# --dry-run needs no Cloudflare credentials, so this runs on fork PRs too.
- run: pnpm exec wrangler deploy --dry-run --outdir .wrangler-build
working-directory: fixtures/worker
- run: pnpm exec vitest run
working-directory: fixtures/worker