Skip to content

Commit 8b9a0a9

Browse files
committed
chore: require deno.lock to be committed. serialize deno workspace tests.
1 parent 3b9bbca commit 8b9a0a9

File tree

5 files changed

+14
-59
lines changed

5 files changed

+14
-59
lines changed

.github/workflows/unit-tests.yml renamed to .github/workflows/deno.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Unit Tests
1+
name: Deno Tests
22

33
on:
44
push:
@@ -9,9 +9,8 @@ on:
99
- main
1010

1111
jobs:
12-
test:
12+
deno:
1313
runs-on: ubuntu-latest
14-
timeout-minutes: 10
1514
defaults:
1615
run:
1716
working-directory: ./typescript/packages
@@ -28,6 +27,14 @@ jobs:
2827
~/.deno
2928
~/.cache/deno
3029
key: ${{ runner.os }}-deno-${{ hashFiles('**/deno.json') }}
30+
- name: Install dependencies
31+
working-directory: typescript/packages
32+
# Errors if `deno.lock` file was not
33+
# committed with the current change.
34+
run: deno install --frozen=true
35+
- name: Lint
36+
working-directory: typescript/packages
37+
run: deno lint
3138
# For deno-web-test browser tests
3239
# https://github.com/lino-levan/astral/blob/f5ef833b2c5bde3783564a6b925073d5d46bb4b8/README.md#no-usable-sandbox-with-user-namespace-cloning-enabled
3340
- name: Disable AppArmor

.github/workflows/lint.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

typescript/packages/deno-web-test/deno.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"./cli": "./cli.ts"
99
},
1010
"imports": {
11-
"@astral/astral": "jsr:@astral/astral",
1211
"esbuild": "npm:esbuild",
13-
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader",
14-
"@std/http": "jsr:@std/http"
12+
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader"
1513
}
1614
}

typescript/packages/deno.lock

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/packages/scripts/utils.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)