Refine test directories. #305
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Browser CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: v18.x | |
- run: | | |
npm install -g esbuild | |
deno task dnt | |
deno task minify > test/runtimes/browsers/pages/src/hpke.js | |
mkdir test/runtimes/browsers/pages/dhkemSecp256k1HkdfSha256 | |
cp -rf x/dhkemSecp256k1HkdfSha256/test/runtimes/browsers/pages/* test/runtimes/browsers/pages/dhkemSecp256k1HkdfSha256 | |
deno task minify > test/runtimes/browsers/pages/dhkemSecp256k1HkdfSha256/src/hpke.js | |
- working-directory: ./x/dhkemSecp256k1HkdfSha256 | |
run: | | |
deno task dnt | |
deno task minify > ../../test/runtimes/browsers/pages/dhkemSecp256k1HkdfSha256/src/hpke-dhkemSecp256k1HkdfSha256.js | |
- uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
publish_dir: ./test/runtimes/browsers/pages | |
playwright-test: | |
needs: pages | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: microsoft/playwright-github-action@v1 | |
- working-directory: ./test/runtimes/browsers | |
run: | | |
npm ci | |
npx playwright install --with-deps | |
npx playwright test | |
- working-directory: ./x/dhkemSecp256k1HkdfSha256/test/runtimes/browsers | |
run: npm install && npx playwright install && npx playwright test |