@@ -22,89 +22,95 @@ jobs:
22
22
node-version : v20.x
23
23
- name : Install esbuild
24
24
run : npm install -g esbuild
25
- - name : Run dnt
26
- run : deno run -A dnt.ts 0.0.0
27
- - name : Run npm pack
28
- working-directory : ./npm
25
+ - name : Prepare test for ./x/core
26
+ working-directory : ./x/core
27
+ run : |
28
+ deno run -A dnt.ts 0.0.0
29
+ deno task minify > ../chacha20poly1305/test/runtimes/hpke-core.js
30
+ deno task minify > ../dhkem-x25519/test/runtimes/hpke-core.js
31
+ deno task minify > ../dhkem-x448/test/runtimes/hpke-core.js
32
+ deno task minify > ../hybridkem-x25519-kyber768/test/runtimes/hpke-core.js
33
+ deno task minify > ../dhkem-secp256k1/test/runtimes/hpke-core.js
34
+ - name : Run npm pack for ./x/core
35
+ working-directory : ./npm-packages/x/core
29
36
run : npm pack
30
- - name : Run test
31
- working-directory : ./test/runtimes/cloudflare
37
+ - name : Run test for ./x/core
38
+ working-directory : ./x/core/ test/runtimes/cloudflare
32
39
run : |
33
40
npm install
34
41
nohup npm start &
35
42
sleep 3
36
- deno test hpke.spec.ts --allow-net --config ../../../deno.json
37
- - working-directory : ./core
43
+ deno test core.spec.ts --allow-net --config ../../../deno.json
44
+ - name : Prepare test for ./x/chacha20poly1305
45
+ working-directory : ./x/chacha20poly1305
38
46
run : |
39
47
deno task dnt
40
- deno run -A dnt.ts 0.0.0
41
- deno task minify > ../x/dhkem-x25519/test/runtimes/hpke-core.js
42
- deno task minify > ../x/dhkem-x448/test/runtimes/hpke-core.js
43
- deno task minify > ../x/chacha20poly1305/test/runtimes/hpke-core.js
44
- deno task minify > ../x/hybridkem-x25519-kyber768/test/runtimes/hpke-core.js
45
- deno task minify > ../x/dhkem-secp256k1/test/runtimes/hpke-core.js
46
- - name : Run npm pack for core
47
- working-directory : ./core/npm
48
- run : npm pack
49
- - name : Run test for core
50
- working-directory : ./core/test/runtimes/cloudflare
48
+ deno task minify > test/runtimes/hpke-chacha20poly1305.js
49
+ - name : Run test for chacha20poly1305
50
+ working-directory : ./x/chacha20poly1305/test/runtimes/cloudflare
51
51
run : |
52
52
npm install
53
53
nohup npm start &
54
54
sleep 3
55
- deno test core.spec.ts --allow-net --config ../../../deno.json
56
- - working-directory : ./x/dhkem-x25519
55
+ deno test chacha20poly1305.spec.ts --allow-net --config ../../../deno.json
56
+ - name : Prepare test for ./x/dhkem-x25519
57
+ working-directory : ./x/dhkem-x25519
57
58
run : |
58
59
deno task dnt
59
60
deno task minify > test/runtimes/hpke-dhkem-x25519.js
60
- - name : Run test for dhkem-x25519
61
+ - name : Run test for ./x/ dhkem-x25519
61
62
working-directory : ./x/dhkem-x25519/test/runtimes/cloudflare
62
63
run : |
63
64
npm install
64
65
nohup npm start &
65
66
sleep 3
66
67
deno test dhkem-x25519.spec.ts --allow-net --config ../../../deno.json
67
- - working-directory : ./x/dhkem-x448
68
+ - name : Prepare test for ./x/dhkem-x448
69
+ working-directory : ./x/dhkem-x448
68
70
run : |
69
71
deno task dnt
70
72
deno task minify > test/runtimes/hpke-dhkem-x448.js
71
- - name : Run test for dhkem-x448
73
+ - name : Run test for ./x/ dhkem-x448
72
74
working-directory : ./x/dhkem-x448/test/runtimes/cloudflare
73
75
run : |
74
76
npm install
75
77
nohup npm start &
76
78
sleep 3
77
79
deno test dhkem-x448.spec.ts --allow-net --config ../../../deno.json
78
- - working-directory : ./x/chacha20poly1305
79
- run : |
80
- deno task dnt
81
- deno task minify > test/runtimes/hpke-chacha20poly1305.js
82
- - name : Run test for chacha20poly1305
83
- working-directory : ./x/chacha20poly1305/test/runtimes/cloudflare
84
- run : |
85
- npm install
86
- nohup npm start &
87
- sleep 3
88
- deno test chacha20poly1305.spec.ts --allow-net --config ../../../deno.json
89
- - working-directory : ./x/hybridkem-x25519-kyber768
80
+ - name : Prepare test for ./x/hybridkem-x25519-kyber768
81
+ working-directory : ./x/hybridkem-x25519-kyber768
90
82
run : |
91
83
deno task dnt
92
84
deno task minify > test/runtimes/hpke-hybridkem-x25519-kyber768.js
93
- - name : Run test for hybridkem-x25519-kyber768
85
+ - name : Run test for ./x/ hybridkem-x25519-kyber768
94
86
working-directory : ./x/hybridkem-x25519-kyber768/test/runtimes/cloudflare
95
87
run : |
96
88
npm install
97
89
nohup npm start &
98
90
sleep 3
99
91
deno test hybridkem-x25519-kyber768.spec.ts --allow-net --config ../../../deno.json
100
- - working-directory : ./x/dhkem-secp256k1
92
+ - name : Prepare test for ./x/dhkem-secp256k1
93
+ working-directory : ./x/dhkem-secp256k1
101
94
run : |
102
95
deno task dnt
103
96
deno task minify > test/runtimes/hpke-dhkem-secp256k1.js
104
- - name : Run test for dhkem-secp256k1
97
+ - name : Run test for ./x/ dhkem-secp256k1
105
98
working-directory : ./x/dhkem-secp256k1/test/runtimes/cloudflare
106
99
run : |
107
100
npm install
108
101
nohup npm start &
109
102
sleep 3
110
103
deno test dhkem-secp256k1.spec.ts --allow-net --config ../../../deno.json
104
+ - name : Prepare test for hpke-js
105
+ working-directory : ./x/hpke-js
106
+ run : deno run -A dnt.ts 0.0.0
107
+ - name : Run npm pack for ./x/hpke-js
108
+ working-directory : ./npm-packages/x/hpke-js
109
+ run : npm pack
110
+ - name : Run test for ./x/hpke-js
111
+ working-directory : ./x/hpke-js/test/runtimes/cloudflare
112
+ run : |
113
+ npm install
114
+ nohup npm start &
115
+ sleep 3
116
+ deno test hpke.spec.ts --allow-net --config ../../../deno.json
0 commit comments