Move the action from Deno to Node.js and Vite+
This commit is contained in:
@@ -5,17 +5,18 @@ on:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deno:
|
||||
check:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: apt-get update && apt-get install -y unzip
|
||||
# The action runs on this same image; src/post.ts needs Node 24.2+.
|
||||
- run: node --version
|
||||
|
||||
- uses: denoland/setup-deno@v2
|
||||
- run: npm ci
|
||||
|
||||
- run: >-
|
||||
deno fmt --check . &&
|
||||
deno lint . &&
|
||||
deno check src/prepare.ts src/run.ts src/post.ts &&
|
||||
deno test --allow-all
|
||||
# Formatting, lint, and type checks, then every test. The job runs as
|
||||
# root, so the isolation tests run rather than skip.
|
||||
- run: npx vp check
|
||||
|
||||
- run: npx vp test
|
||||
|
||||
Reference in New Issue
Block a user