Merge pull request 'Set up CI' (#9) from dev/3-ci into master
All checks were successful
CI / Test and lint (push) Successful in 15s

Reviewed-on: #9
This commit is contained in:
Râu Cao 2024-12-03 16:59:51 +00:00
commit 7f975f2dbb
2 changed files with 20 additions and 1 deletions

18
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,18 @@
name: CI
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",