-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (43 loc) · 1.24 KB
/
ci_bun.yml
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: bun CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- uses: actions/setup-node@v3
with:
node-version: v18.x
- run: |
npm install -g esbuild
deno task dnt
deno task minify > test/bun/src/hpke.js
deno task minify > x/dhkemSecp256k1HkdfSha256/test/runtimes/bun/src/hpke.js
- working-directory: ./x/dhkemSecp256k1HkdfSha256/
run: |
deno task dnt
deno task minify > test/runtimes/bun/src/hpke-dhkemSecp256k1HkdfSha256.js
- uses: antongolub/action-setup-bun@v1
with:
bun-version: 0.4
- name: Run test
working-directory: ./test/bun
run: |
nohup bun src/index.js &
sleep 3
deno test hpke.spec.ts --allow-net
- name: Run test for dhkemSecp256k1HkdfSha256
working-directory: ./x/dhkemSecp256k1HkdfSha256/test/runtimes/bun
run: |
nohup bun src/index.js &
sleep 3
deno test dhkemSecp256k1HkdfSha256.spec.ts --allow-net