Skip to content

Commit de1c658

Browse files
authored
👷 Add CI for test (#1)
1 parent cf3ca42 commit de1c658

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

‎.github/workflows/ci.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: ci
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
jobs:
9+
ci:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Deno
16+
uses: denoland/setup-deno@v1
17+
with:
18+
deno-version: v1.x
19+
20+
- name: Lint
21+
run: deno lint
22+
23+
- name: Test
24+
run: deno test
25+
26+
- name: Format
27+
run: deno fmt --check
28+
29+
- name: Build npm
30+
run: deno task build:npm

‎deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"tasks": {
44
"sync:readme": "deno run --allow-read --allow-write --allow-env ./scripts/sync_readme.ts",
55
"bench": "deno bench --allow-sys --allow-read",
6-
"build:npm": "deno run --allow-run --allow-read --allow-write --allow-env ./scripts/build_npm.ts"
6+
"build:npm": "deno run --allow-run --allow-read --allow-write --allow-env --allow-net ./scripts/build_npm.ts"
77
},
88
"exclude": ["npm"]
99
}

0 commit comments

Comments
 (0)