@@ -25,34 +25,18 @@ jobs:
25
25
- uses : actions/setup-node@v4
26
26
with :
27
27
node-version : v20.x
28
- - run : |
29
- npm install -g esbuild
30
- deno task dnt
31
- deno task minify > test/runtimes/hpke.js
32
28
- uses : antongolub/action-setup-bun@v1
33
29
with :
34
30
bun-version : ${{ matrix.bun-version }}
35
31
- name : Install esbuild
36
32
run : npm install -g esbuild
37
- - name : Run dnt
38
- run : deno run -A dnt.ts 0.0.0
39
- - name : Run npm pack
40
- working-directory : ./npm
41
- run : npm pack
42
- - name : Run test
43
- working-directory : ./test/runtimes/bun
44
- run : |
45
- bun install
46
- nohup bun run src/index.ts &
47
- sleep 3
48
- deno test hpke.spec.ts --allow-net --config ../../../deno.json
49
- - working-directory : ./core
33
+ - name : Prepare test for core
34
+ working-directory : ./core
50
35
run : |
51
36
deno task dnt
52
37
deno run -A dnt.ts 0.0.0
53
38
deno task minify > ../x/dhkem-x25519/test/runtimes/hpke-core.js
54
39
deno task minify > ../x/dhkem-x448/test/runtimes/hpke-core.js
55
- deno task minify > ../x/chacha20poly1305/test/runtimes/hpke-core.js
56
40
deno task minify > ../x/hybridkem-x25519-kyber768/test/runtimes/hpke-core.js
57
41
deno task minify > ../x/dhkem-secp256k1/test/runtimes/hpke-core.js
58
42
- name : Run npm pack for core
65
49
nohup bun src/index.ts &
66
50
sleep 3
67
51
deno test core.spec.ts --allow-net --config ../../../deno.json
52
+ - name : Run test for hpke-js
53
+ working-directory : ./
54
+ run : |
55
+ deno task dnt
56
+ deno run -A dnt.ts 0.0.0
57
+ deno task minify > test/runtimes/hpke.js
58
+ - name : Run npm pack for hpke-js
59
+ working-directory : ./npm
60
+ run : npm pack
61
+ - name : Run test for hpke-js
62
+ working-directory : ./test/runtimes/bun
63
+ run : |
64
+ bun install
65
+ nohup bun run src/index.ts &
66
+ sleep 3
67
+ deno test hpke.spec.ts --allow-net --config ../../../deno.json
68
68
- working-directory : ./x/dhkem-x25519
69
69
run : |
70
70
deno task dnt
@@ -88,13 +88,17 @@ jobs:
88
88
- working-directory : ./x/chacha20poly1305
89
89
run : |
90
90
deno task dnt
91
- deno task minify > test/runtimes/hpke-chacha20poly1305.js
91
+ deno run -A dnt.ts 0.0.0
92
+ - name : Run npm pack for chacha20poly1305
93
+ working-directory : ./x/chacha20poly1305/npm
94
+ run : npm pack
92
95
- name : Run test for chacha20poly1305
93
96
working-directory : ./x/chacha20poly1305/test/runtimes/bun
94
97
run : |
95
- nohup bun src/index.js &
98
+ bun install
99
+ nohup bun src/index.ts &
96
100
sleep 3
97
- deno test chacha20poly1305.spec.ts --allow-net
101
+ deno test chacha20poly1305.spec.ts --allow-net --config ../../../deno.json
98
102
- working-directory : ./x/hybridkem-x25519-kyber768
99
103
run : |
100
104
deno task dnt
0 commit comments