@@ -30,40 +30,24 @@ jobs:
30
30
bun-version : ${{ matrix.bun-version }}
31
31
- name : Install esbuild
32
32
run : npm install -g esbuild
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
- working-directory : ./npm
41
- run : npm pack
42
- - name : Prepare test for core
43
- working-directory : ./core
33
+ - name : Prepare test for ./x/core
34
+ working-directory : ./x/core
44
35
run : |
45
36
deno run -A dnt.ts 0.0.0
46
- deno task minify > ../x/ dhkem-x25519/test/runtimes/hpke-core.js
47
- deno task minify > ../x/ dhkem-x448/test/runtimes/hpke-core.js
48
- deno task minify > ../x/ hybridkem-x25519-kyber768/test/runtimes/hpke-core.js
49
- deno task minify > ../x/ dhkem-secp256k1/test/runtimes/hpke-core.js
50
- - name : Run npm pack for core
51
- working-directory : ./core/ npm
37
+ deno task minify > ../dhkem-x25519/test/runtimes/hpke-core.js
38
+ deno task minify > ../dhkem-x448/test/runtimes/hpke-core.js
39
+ deno task minify > ../hybridkem-x25519-kyber768/test/runtimes/hpke-core.js
40
+ deno task minify > ../dhkem-secp256k1/test/runtimes/hpke-core.js
41
+ - name : Run npm pack for ./x/ core
42
+ working-directory : ./npm-packages/x/core
52
43
run : npm pack
53
- - name : Run test for core
54
- working-directory : ./core/test/runtimes/bun
44
+ - name : Run test for ./x/ core
45
+ working-directory : ./x/ core/test/runtimes/bun
55
46
run : |
56
47
bun install
57
48
nohup bun src/index.ts &
58
49
sleep 3
59
50
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
67
51
- working-directory : ./x/dhkem-x25519
68
52
run : |
69
53
deno task dnt
@@ -84,14 +68,14 @@ jobs:
84
68
nohup bun src/index.js &
85
69
sleep 3
86
70
deno test dhkem-x448.spec.ts --allow-net
87
- - working-directory : ./x/chacha20poly1305
71
+ - name : Prepare test for ./x/chacha20poly1305
72
+ working-directory : ./x/chacha20poly1305
88
73
run : |
89
- deno task dnt
90
74
deno run -A dnt.ts 0.0.0
91
- - name : Run npm pack for chacha20poly1305
92
- working-directory : ./x/chacha20poly1305/npm
75
+ - name : Run npm pack for ./x/ chacha20poly1305
76
+ working-directory : ./npm-packages/ x/chacha20poly1305
93
77
run : npm pack
94
- - name : Run test for chacha20poly1305
78
+ - name : Run test for ./x/ chacha20poly1305
95
79
working-directory : ./x/chacha20poly1305/test/runtimes/bun
96
80
run : |
97
81
bun install
@@ -117,4 +101,19 @@ jobs:
117
101
run : |
118
102
nohup bun src/index.js &
119
103
sleep 3
120
- deno test dhkem-secp256k1.spec.ts --allow-net
104
+ deno test dhkem-secp256k1.spec.ts --allow-net
105
+ - name : Prepare test for hpke-js
106
+ working-directory : ./x/hpke-js
107
+ run : |
108
+ deno run -A dnt.ts 0.0.0
109
+ deno task minify > test/runtimes/hpke.js
110
+ - name : Run npm pack for hpke-js
111
+ working-directory : ./npm-packages/x/hpke-js
112
+ run : npm pack
113
+ - name : Run test for hpke-js
114
+ working-directory : ./x/hpke-js/test/runtimes/bun
115
+ run : |
116
+ bun install
117
+ nohup bun run src/index.ts &
118
+ sleep 3
119
+ deno test hpke.spec.ts --allow-net --config ../../../deno.json
0 commit comments