test: vitest in Workers pool, 12 cases incl token redaction + CI

This commit is contained in:
2026-05-09 11:29:07 +07:00
parent 3e68dd7fa4
commit 671ba6ad1b
3 changed files with 212 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm test
- run: npx wrangler deploy --dry-run
env:
CLOUDFLARE_API_TOKEN: dummy