Skip to content

Commit

Permalink
Refine test directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajiaji committed Jul 26, 2023
1 parent f9d87de commit 32d0dae
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci_browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
- run: |
npm install -g esbuild
deno task dnt
deno task minify > test/pages/src/hpke.js
mkdir test/pages/dhkemSecp256k1HkdfSha256
cp -rf x/dhkemSecp256k1HkdfSha256/test/runtimes/browsers/pages/* test/pages/dhkemSecp256k1HkdfSha256
deno task minify > test/pages/dhkemSecp256k1HkdfSha256/src/hpke.js
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/pages/dhkemSecp256k1HkdfSha256/src/hpke-dhkemSecp256k1HkdfSha256.js
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 }}
Expand All @@ -43,7 +43,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: microsoft/playwright-github-action@v1
- working-directory: ./test/playwright
- working-directory: ./test/runtimes/browsers
run: |
npm ci
npx playwright install --with-deps
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_bun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- run: |
npm install -g esbuild
deno task dnt
deno task minify > test/bun/src/hpke.js
deno task minify > test/runtimes/bun/src/hpke.js
deno task minify > x/dhkemSecp256k1HkdfSha256/test/runtimes/bun/src/hpke.js
- working-directory: ./x/dhkemSecp256k1HkdfSha256/
run: |
Expand All @@ -33,7 +33,7 @@ jobs:
with:
bun-version: 0.4
- name: Run test
working-directory: ./test/bun
working-directory: ./test/runtimes/bun
run: |
nohup bun src/index.js &
sleep 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
- run: |
npm install -g esbuild
deno task dnt
deno task minify > test/wrangler/src/hpke.js
deno task minify > test/runtimes/cloudflare/src/hpke.js
deno task minify > x/dhkemSecp256k1HkdfSha256/test/runtimes/cloudflare/src/hpke.js
- working-directory: ./x/dhkemSecp256k1HkdfSha256/
run: |
deno task dnt
deno task minify > test/runtimes/cloudflare/src/hpke-dhkemSecp256k1HkdfSha256.js
- name: Run test
working-directory: ./test/wrangler
working-directory: ./test/runtimes/cloudflare
run: |
npm install
nohup npm start &
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 32d0dae

Please sign in to comment.