Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine test directories. #198

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci_browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ 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 }}
publish_dir: ./test/pages
publish_dir: ./test/runtimes/browsers/pages

playwright-test:
needs: pages
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.
Loading