@@ -20,60 +20,70 @@ jobs:
20
20
- uses : actions/setup-node@v4
21
21
with :
22
22
node-version : v18.x
23
- - run : |
23
+ - name : Install dependencies
24
+ run : |
24
25
npm install -g typescript
25
26
npm install -g typedoc
26
- npx typedoc --name "hpke-js $(git describe --tags --abbrev=0)" --out test/runtimes/browsers/pages/docs mod.ts
27
27
npm install -g esbuild
28
+ - name : Build docs for @hpke/hpke-js
29
+ working-directory : ./x/hpke-js
30
+ run : |
31
+ npx typedoc --name "@hpke/hpke-js $(git describe --tags --abbrev=0)" --out test/runtimes/browsers/pages/docs mod.ts
28
32
deno task dnt
29
33
deno task minify > test/runtimes/browsers/pages/src/hpke.js
30
34
mkdir test/runtimes/browsers/pages/core
31
- cp -rf core/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/core
35
+ cp -rf ../core/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/core
36
+ mkdir test/runtimes/browsers/pages/chacha20poly1305
37
+ cp -rf ../chacha20poly1305/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/chacha20poly1305
32
38
mkdir test/runtimes/browsers/pages/dhkem-x25519
33
- cp -rf x /dhkem-x25519/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/dhkem-x25519
39
+ cp -rf .. /dhkem-x25519/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/dhkem-x25519
34
40
mkdir test/runtimes/browsers/pages/dhkem-x448
35
- cp -rf x/dhkem-x448/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/dhkem-x448
36
- mkdir test/runtimes/browsers/pages/chacha20poly1305
37
- cp -rf x/chacha20poly1305/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/chacha20poly1305
41
+ cp -rf ../dhkem-x448/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/dhkem-x448
38
42
mkdir test/runtimes/browsers/pages/hybridkem-x25519-kyber768
39
- cp -rf x /hybridkem-x25519-kyber768/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/hybridkem-x25519-kyber768
43
+ cp -rf .. /hybridkem-x25519-kyber768/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/hybridkem-x25519-kyber768
40
44
mkdir test/runtimes/browsers/pages/dhkem-secp256k1
41
- cp -rf x/dhkem-secp256k1/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/dhkem-secp256k1
42
- - working-directory : ./core
45
+ cp -rf ../dhkem-secp256k1/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/dhkem-secp256k1
46
+ - name : Build docs for @hpke/core
47
+ working-directory : ./x/core
43
48
run : |
44
- npx typedoc --name "@hpke/core $(git describe --tags --abbrev=0)" --out ../test/runtimes/browsers/pages/core/docs mod.ts
49
+ npx typedoc --name "@hpke/core $(git describe --tags --abbrev=0)" --out ../hpke-js/ test/runtimes/browsers/pages/core/docs mod.ts
45
50
deno task dnt
46
- deno task minify > ../test/runtimes/browsers/pages/core/src/hpke-core.js
47
- deno task minify > ../test/runtimes/browsers/pages/dhkem-x25519/src/hpke-core.js
48
- deno task minify > ../test/runtimes/browsers/pages/dhkem-x448/src/hpke-core.js
49
- deno task minify > ../test/runtimes/browsers/pages/chacha20poly1305/src/hpke-core.js
50
- deno task minify > ../test/runtimes/browsers/pages/hybridkem-x25519-kyber768/src/hpke-core.js
51
- deno task minify > ../test/runtimes/browsers/pages/dhkem-secp256k1/src/hpke-core.js
52
- - working-directory : ./x/dhkem-x25519
51
+ deno task minify > ../hpke-js/test/runtimes/browsers/pages/core/src/hpke-core.js
52
+ deno task minify > ../hpke-js/test/runtimes/browsers/pages/dhkem-x25519/src/hpke-core.js
53
+ deno task minify > ../hpke-js/test/runtimes/browsers/pages/dhkem-x448/src/hpke-core.js
54
+ deno task minify > ../hpke-js/test/runtimes/browsers/pages/chacha20poly1305/src/hpke-core.js
55
+ deno task minify > ../hpke-js/test/runtimes/browsers/pages/hybridkem-x25519-kyber768/src/hpke-core.js
56
+ deno task minify > ../hpke-js/test/runtimes/browsers/pages/dhkem-secp256k1/src/hpke-core.js
57
+ - name : Build docs for @hpke/chacha20poly1305
58
+ working-directory : ./x/chacha20poly1305
53
59
run : |
54
- npx typedoc --name "@hpke/dhkem-x25519 $(git describe --tags --abbrev=0)" --out ../.. /test/runtimes/browsers/pages/dhkem-x25519 /docs mod.ts
60
+ npx typedoc --name "@hpke/chacha20poly1305 $(git describe --tags --abbrev=0)" --out ../hpke-js /test/runtimes/browsers/pages/chacha20poly1305 /docs mod.ts
55
61
deno task dnt
56
- deno task minify > ../../test/runtimes/browsers/pages/dhkem-x25519/src/hpke-dhkem-x25519.js
57
- - working-directory : ./x/dhkem-x448
62
+ deno task minify > ../hpke-js/test/runtimes/browsers/pages/chacha20poly1305/src/hpke-chacha20poly1305.js
63
+ - name : Build docs for @hpke/dhkem-x25519
64
+ working-directory : ./x/dhkem-x25519
58
65
run : |
59
- npx typedoc --name "@hpke/dhkem-x448 $(git describe --tags --abbrev=0)" --out ../.. /test/runtimes/browsers/pages/dhkem-x448 /docs mod.ts
66
+ npx typedoc --name "@hpke/dhkem-x25519 $(git describe --tags --abbrev=0)" --out ../hpke-js /test/runtimes/browsers/pages/dhkem-x25519 /docs mod.ts
60
67
deno task dnt
61
- deno task minify > ../../test/runtimes/browsers/pages/dhkem-x448/src/hpke-dhkem-x448.js
62
- - working-directory : ./x/chacha20poly1305
68
+ deno task minify > ../hpke-js/test/runtimes/browsers/pages/dhkem-x25519/src/hpke-dhkem-x25519.js
69
+ - name : Build docs for @hpke/dhkem-x448
70
+ working-directory : ./x/dhkem-x448
63
71
run : |
64
- npx typedoc --name "@hpke/chacha20poly1305 $(git describe --tags --abbrev=0)" --out ../.. /test/runtimes/browsers/pages/chacha20poly1305 /docs mod.ts
72
+ npx typedoc --name "@hpke/dhkem-x448 $(git describe --tags --abbrev=0)" --out ../hpke-js /test/runtimes/browsers/pages/dhkem-x448 /docs mod.ts
65
73
deno task dnt
66
- deno task minify > ../../test/runtimes/browsers/pages/chacha20poly1305/src/hpke-chacha20poly1305.js
67
- - working-directory : ./x/hybridkem-x25519-kyber768
74
+ deno task minify > ../hpke-js/test/runtimes/browsers/pages/dhkem-x448/src/hpke-dhkem-x448.js
75
+ - name : Build docs for @hpke/hybridkem-x25519-kyber768
76
+ working-directory : ./x/hybridkem-x25519-kyber768
68
77
run : |
69
- npx typedoc --name "@hpke/hybridkem-x25519-kyber768 $(git describe --tags --abbrev=0)" --out ../.. /test/runtimes/browsers/pages/hybridkem-x25519-kyber768/docs mod.ts
78
+ npx typedoc --name "@hpke/hybridkem-x25519-kyber768 $(git describe --tags --abbrev=0)" --out ../hpke-js /test/runtimes/browsers/pages/hybridkem-x25519-kyber768/docs mod.ts
70
79
deno task dnt
71
- deno task minify > ../../test/runtimes/browsers/pages/hybridkem-x25519-kyber768/src/hpke-hybridkem-x25519-kyber768.js
72
- - working-directory : ./x/dhkem-secp256k1
80
+ deno task minify > ../hpke-js/test/runtimes/browsers/pages/hybridkem-x25519-kyber768/src/hpke-hybridkem-x25519-kyber768.js
81
+ - name : Build docs for @hpke/dhkem-secp256k1
82
+ working-directory : ./x/dhkem-secp256k1
73
83
run : |
74
- npx typedoc --name "@hpke/dhkem-secp256k1 $(git describe --tags --abbrev=0)" --out ../.. /test/runtimes/browsers/pages/dhkem-secp256k1/docs mod.ts
84
+ npx typedoc --name "@hpke/dhkem-secp256k1 $(git describe --tags --abbrev=0)" --out ../hpke-js /test/runtimes/browsers/pages/dhkem-secp256k1/docs mod.ts
75
85
deno task dnt
76
- deno task minify > ../.. /test/runtimes/browsers/pages/dhkem-secp256k1/src/hpke-dhkem-secp256k1.js
86
+ deno task minify > ../hpke-js /test/runtimes/browsers/pages/dhkem-secp256k1/src/hpke-dhkem-secp256k1.js
77
87
- uses : peaceiris/actions-gh-pages@v3
78
88
with :
79
89
deploy_key : ${{ secrets.ACTIONS_DEPLOY_KEY }}
86
96
- uses : actions/checkout@v4
87
97
- uses : actions/setup-node@v4
88
98
- uses : microsoft/playwright-github-action@v1
89
- - working-directory : ./test/runtimes/browsers
90
- run : npm install && npx playwright install && npx playwright test
91
- - working-directory : ./core/test/runtimes/browsers
99
+ - working-directory : ./x/core/test/runtimes/browsers
92
100
run : npm install && npx playwright install && npx playwright test
93
101
- working-directory : ./x/dhkem-x25519/test/runtimes/browsers
94
102
run : npm install && npx playwright install && npx playwright test
@@ -100,3 +108,5 @@ jobs:
100
108
run : npm install && npx playwright install && npx playwright test
101
109
- working-directory : ./x/dhkem-secp256k1/test/runtimes/browsers
102
110
run : npm install && npx playwright install && npx playwright test
111
+ - working-directory : ./x/hpke-js/test/runtimes/browsers
112
+ run : npm install && npx playwright install && npx playwright test
0 commit comments