-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (36 loc) · 1.04 KB
/
Copy pathci.yml
File metadata and controls
46 lines (36 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- name: Setup Deno
uses: denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed # v2
with:
deno-version: v2.6.8
- name: Setup Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
- name: Run checks
run: deno task check
- name: Build npm package
run: deno task build:npm
- name: Smoke test npm entry points
run: >-
node --input-type=module -e
'await Promise.all([
import("./npm/esm/mod.js"),
import("./npm/esm/src/nondeterministic.js"),
import("./npm/esm/src/perf.js")
])'
- name: Verify npm package contents
run: npm pack ./npm --dry-run