Skip to content

Commit cbc54c8

Browse files
committed
Automated testing for Node
1 parent a5f42f4 commit cbc54c8

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/node.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [18.x, 21.x]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- run: npx jsr add @cross/test @std/assert
21+
- run: "echo '{ \"type\": \"module\" }' > package.json" # Needed for tsx to work
22+
- run: npx tsx --test

deno.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"lineWidth": 200,
77
"exclude": ["README.md"]
88
},
9-
"imports": { "@cross/test": "jsr:@cross/test@^0.0.6", "@std/assert": "jsr:@std/assert@^0.219.1" }
10-
}
9+
"imports": { "@cross/test": "jsr:@cross/test@^0.0.7", "@std/assert": "jsr:@std/assert@^0.219.1" }
10+
}

0 commit comments

Comments
 (0)