@@ -25,34 +25,26 @@ 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
33
+ - name : Prepare test for hpke-js
34
+ working-directory : ./
35
+ run : |
36
+ pwd
37
+ deno run -A dnt.ts 0.0.0
38
+ deno task minify > test/runtimes/hpke.js
39
+ - name : Run npm pack for hpke-js
40
40
working-directory : ./npm
41
41
run : npm pack
42
- - name : Run test
43
- working-directory : ./test/runtimes/bun
42
+ - name : Prepare test for core
43
+ working-directory : ./core
44
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
50
- run : |
51
- deno task dnt
52
45
deno run -A dnt.ts 0.0.0
53
46
deno task minify > ../x/dhkem-x25519/test/runtimes/hpke-core.js
54
47
deno task minify > ../x/dhkem-x448/test/runtimes/hpke-core.js
55
- deno task minify > ../x/chacha20poly1305/test/runtimes/hpke-core.js
56
48
deno task minify > ../x/hybridkem-x25519-kyber768/test/runtimes/hpke-core.js
57
49
deno task minify > ../x/dhkem-secp256k1/test/runtimes/hpke-core.js
58
50
- name : Run npm pack for core
65
57
nohup bun src/index.ts &
66
58
sleep 3
67
59
deno test core.spec.ts --allow-net --config ../../../deno.json
60
+ - name : Run test for hpke-js
61
+ working-directory : ./test/runtimes/bun
62
+ run : |
63
+ bun install
64
+ nohup bun run src/index.ts &
65
+ sleep 3
66
+ deno test hpke.spec.ts --allow-net --config ../../../deno.json
68
67
- working-directory : ./x/dhkem-x25519
69
68
run : |
70
69
deno task dnt
@@ -88,13 +87,17 @@ jobs:
88
87
- working-directory : ./x/chacha20poly1305
89
88
run : |
90
89
deno task dnt
91
- deno task minify > test/runtimes/hpke-chacha20poly1305.js
90
+ deno run -A dnt.ts 0.0.0
91
+ - name : Run npm pack for chacha20poly1305
92
+ working-directory : ./x/chacha20poly1305/npm
93
+ run : npm pack
92
94
- name : Run test for chacha20poly1305
93
95
working-directory : ./x/chacha20poly1305/test/runtimes/bun
94
96
run : |
95
- nohup bun src/index.js &
97
+ bun install
98
+ nohup bun src/index.ts &
96
99
sleep 3
97
- deno test chacha20poly1305.spec.ts --allow-net
100
+ deno test chacha20poly1305.spec.ts --allow-net --config ../../../deno.json
98
101
- working-directory : ./x/hybridkem-x25519-kyber768
99
102
run : |
100
103
deno task dnt
0 commit comments