Merge pull request #243 from dajiaji/bump-wrangler #139
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: Cloudflare Workers CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.36.0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: v20.x | |
- run: | | |
npm install -g esbuild | |
deno task dnt | |
deno task minify > test/runtimes/hpke.js | |
- name: Run test | |
working-directory: ./test/runtimes/cloudflare | |
run: | | |
npm install | |
nohup npm start & | |
sleep 3 | |
deno test hpke.spec.ts --allow-net | |
- working-directory: ./core | |
run: | | |
deno task dnt | |
deno task minify > test/runtimes/hpke-core.js | |
deno task minify > ../x/dhkem-x25519/test/runtimes/hpke-core.js | |
deno task minify > ../x/dhkem-x448/test/runtimes/hpke-core.js | |
deno task minify > ../x/chacha20poly1305/test/runtimes/hpke-core.js | |
deno task minify > ../x/dhkem-secp256k1/test/runtimes/hpke-core.js | |
- name: Run test for core | |
working-directory: ./core/test/runtimes/cloudflare | |
run: | | |
npm install | |
nohup npm start & | |
sleep 3 | |
deno test core.spec.ts --allow-net | |
- working-directory: ./x/dhkem-x25519 | |
run: | | |
deno task dnt | |
deno task minify > test/runtimes/hpke-dhkem-x25519.js | |
- name: Run test for dhkem-x25519 | |
working-directory: ./x/dhkem-x25519/test/runtimes/cloudflare | |
run: | | |
npm install | |
nohup npm start & | |
sleep 3 | |
deno test dhkem-x25519.spec.ts --allow-net | |
- working-directory: ./x/dhkem-x448 | |
run: | | |
deno task dnt | |
deno task minify > test/runtimes/hpke-dhkem-x448.js | |
- name: Run test for dhkem-x448 | |
working-directory: ./x/dhkem-x448/test/runtimes/cloudflare | |
run: | | |
npm install | |
nohup npm start & | |
sleep 3 | |
deno test dhkem-x448.spec.ts --allow-net | |
- working-directory: ./x/chacha20poly1305 | |
run: | | |
deno task dnt | |
deno task minify > test/runtimes/hpke-chacha20poly1305.js | |
- name: Run test for chacha20poly1305 | |
working-directory: ./x/chacha20poly1305/test/runtimes/cloudflare | |
run: | | |
npm install | |
nohup npm start & | |
sleep 3 | |
deno test chacha20poly1305.spec.ts --allow-net | |
- working-directory: ./x/dhkem-secp256k1 | |
run: | | |
deno task dnt | |
deno task minify > test/runtimes/hpke-dhkem-secp256k1.js | |
- name: Run test for dhkem-secp256k1 | |
working-directory: ./x/dhkem-secp256k1/test/runtimes/cloudflare | |
run: | | |
npm install | |
nohup npm start & | |
sleep 3 | |
deno test dhkem-secp256k1.spec.ts --allow-net |