Fix badge url. #174
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: bun CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
bun-version: [0.4, 0.5, 0.6, 0.7] | |
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/hpke.js | |
deno task minify > x/dhkemSecp256k1HkdfSha256/test/runtimes/hpke.js | |
- working-directory: ./x/dhkemSecp256k1HkdfSha256/ | |
run: | | |
deno task dnt | |
deno task minify > test/runtimes/hpke-dhkemSecp256k1HkdfSha256.js | |
- uses: antongolub/action-setup-bun@v1 | |
with: | |
bun-version: ${{ matrix.bun-version }} | |
- name: Run test | |
working-directory: ./test/runtimes/bun | |
run: | | |
nohup bun src/index.js & | |
sleep 3 | |
deno test hpke.spec.ts --allow-net | |
- name: Run test for dhkemSecp256k1HkdfSha256 | |
working-directory: ./x/dhkemSecp256k1HkdfSha256/test/runtimes/bun | |
run: | | |
nohup bun src/index.js & | |
sleep 3 | |
deno test dhkemSecp256k1HkdfSha256.spec.ts --allow-net |