-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (46 loc) · 1.39 KB
/
ci_browsers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Browsers CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: |
npm install -g typescript
npm install -g typedoc
# npx typedoc --name "crystals-kyber-js $(git describe --tags --abbrev=0)" --out pages/docs/main mod.ts
npx typedoc --name "API reference for crystals-kyber-js/main" --out pages/docs/main mod.ts
npm install -g esbuild
deno task dnt
deno task minify > test/runtimes/browsers/pages/src/crystals-kyber.js
mkdir pages/tests
cp -rf test/runtimes/browsers/pages/* pages/tests
- uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./pages
playwright-test:
needs: pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: microsoft/playwright-github-action@v1
- working-directory: ./test/runtimes/browsers
run: |
npm install
npx playwright install-deps
npx playwright install
npx playwright test