Skip to content

Commit f993a57

Browse files
committed
ci: lint and build with deno
1 parent d6968fa commit f993a57

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ jobs:
6262
- run: cd frontend && npm ci
6363
- run: cd frontend && npm run build
6464
- run: cd frontend && npm test
65+
deno-js:
66+
runs-on: "ubuntu-latest"
67+
steps:
68+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
69+
with:
70+
persist-credentials: false
71+
- uses: denoland/setup-deno@e95548e56dfa95d4e1a28d6f422fafe75c4c26fb # v2.0.3
72+
with:
73+
deno-version: "v2.6.x"
74+
- run: cd frontend && deno install
75+
- run: cd frontend && deno lint
76+
- run: cd frontend && deno run build
6577
lint-js:
6678
runs-on: "ubuntu-latest"
6779
steps:

frontend/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/denoland/deno/refs/heads/main/cli/schemas/config-file.v1.json",
33
"tasks": {
4-
"build": "deno run --allow-env --allow-read=src --allow-run build.ts"
4+
"build": "deno run --ignore-env --allow-read --allow-write=../src/fava/static --allow-run build.ts"
55
},
66
"lint": {
77
"rules": {

0 commit comments

Comments
 (0)