Set up CI
All checks were successful
Test and lint / Test and lint (push) Successful in 17s
Test and lint / Test and lint (pull_request) Successful in 14s

closes #3
This commit is contained in:
Râu Cao 2024-12-03 17:47:34 +01:00
parent 51ae16e57f
commit b376bbd2aa
Signed by: raucao
GPG Key ID: 37036C356E56CC51
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,18 @@
name: Test and lint
on:
push:
pull_request:
jobs:
test_and_lint:
name: Test and lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: denoland/setup-deno@v2
with:
deno-version: v2.1.x
- run: "deno task test"
- run: "deno lint"

View File

@ -2,7 +2,8 @@
"tasks": {
"dev": "deno run --allow-all --watch server.ts",
"server": "deno run --allow-all server.ts",
"compile": "deno compile --allow-all --include ./assets/ --output substr server.ts"
"compile": "deno compile --allow-all --include ./assets/ --output substr server.ts",
"test": "deno test --allow-read --allow-env"
},
"imports": {
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",