Skip to content

Merge pull request #28 from unredacted/dependabot/npm_and_yarn/produc… #71

Merge pull request #28 from unredacted/dependabot/npm_and_yarn/produc…

Merge pull request #28 from unredacted/dependabot/npm_and_yarn/produc… #71

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
typecheck:
name: Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "22"
cache: npm
- run: npm ci
- run: npm run typecheck
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "22"
cache: npm
- run: npm ci
# vitest-pool-workers requires a wrangler.toml to exist.
# The real one is gitignored, so we copy the example template
# which has all the bindings configured with placeholder values.
- name: Create wrangler.toml from example
run: cp wrangler-example.toml wrangler.toml
# The [assets] binding in wrangler-example.toml points at ./dist,
# which Wrangler validates exists at config-load time (including
# when vitest-pool-workers boots). Build the dashboard so dist/
# is present; this also catches Vite/Tailwind/shadcn build breaks
# in CI for free.
- name: Build dashboard
run: npm run build:dashboard
- run: npm test