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
All checks were successful
CI / Test and lint (push) Successful in 15s
Reviewed-on: #9
This commit is contained in:
commit
7f975f2dbb
18
.gitea/workflows/ci.yml
Normal file
18
.gitea/workflows/ci.yml
Normal 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"
|
@ -2,7 +2,8 @@
|
|||||||
"tasks": {
|
"tasks": {
|
||||||
"dev": "deno run --allow-all --watch server.ts",
|
"dev": "deno run --allow-all --watch server.ts",
|
||||||
"server": "deno run --allow-all 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": {
|
"imports": {
|
||||||
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",
|
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user