@@ -30,40 +30,37 @@ 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
33
- name : Prepare test for core
43
- working-directory : ./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
51
+ - working-directory : ./x/chacha20poly1305
52
+ run : |
53
+ deno run -A dnt.ts 0.0.0
54
+ - name : Run npm pack for ./x/chacha20poly1305
55
+ working-directory : ./npm-packages/x/chacha20poly1305
56
+ run : npm pack
57
+ - name : Run test for ./x/chacha20poly1305
58
+ working-directory : ./x/chacha20poly1305/test/runtimes/bun
62
59
run : |
63
60
bun install
64
- nohup bun run src/index.ts &
61
+ nohup bun src/index.ts &
65
62
sleep 3
66
- deno test hpke .spec.ts --allow-net --config ../../../deno.json
63
+ deno test chacha20poly1305 .spec.ts --allow-net --config ../../../deno.json
67
64
- working-directory : ./x/dhkem-x25519
68
65
run : |
69
66
deno task dnt
84
81
nohup bun src/index.js &
85
82
sleep 3
86
83
deno test dhkem-x448.spec.ts --allow-net
87
- - working-directory : ./x/chacha20poly1305
88
- run : |
89
- deno task dnt
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
94
- - name : Run test for chacha20poly1305
95
- working-directory : ./x/chacha20poly1305/test/runtimes/bun
96
- run : |
97
- bun install
98
- nohup bun src/index.ts &
99
- sleep 3
100
- deno test chacha20poly1305.spec.ts --allow-net --config ../../../deno.json
101
84
- working-directory : ./x/hybridkem-x25519-kyber768
102
85
run : |
103
86
deno task dnt
@@ -117,4 +100,19 @@ jobs:
117
100
run : |
118
101
nohup bun src/index.js &
119
102
sleep 3
120
- deno test dhkem-secp256k1.spec.ts --allow-net
103
+ deno test dhkem-secp256k1.spec.ts --allow-net
104
+ - name : Prepare test for hpke-js
105
+ working-directory : ./x/hpke-js
106
+ run : |
107
+ deno run -A dnt.ts 0.0.0
108
+ deno task minify > test/runtimes/hpke.js
109
+ - name : Run npm pack for hpke-js
110
+ working-directory : ./npm-packages/x/hpke-js
111
+ run : npm pack
112
+ - name : Run test for hpke-js
113
+ working-directory : ./test/runtimes/bun
114
+ run : |
115
+ bun install
116
+ nohup bun run src/index.ts &
117
+ sleep 3
118
+ deno test hpke.spec.ts --allow-net --config ../../../deno.json
0 commit comments