diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64523b024..19699146d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: Deno CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] permissions: contents: read @@ -12,11 +12,14 @@ permissions: jobs: test: runs-on: ubuntu-latest + strategy: + matrix: + deno-version: [1.x, 2.x] steps: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: - deno-version: v1.x + deno-version: ${{ matrix.deno-version }} - name: Run deno test run: | deno fmt --check diff --git a/.github/workflows/ci_browser.yml b/.github/workflows/ci_browser.yml index cffcc7115..178d51b24 100644 --- a/.github/workflows/ci_browser.yml +++ b/.github/workflows/ci_browser.yml @@ -2,9 +2,9 @@ name: Browser CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] permissions: contents: read @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: - deno-version: v1.x + deno-version: 2.x - uses: actions/setup-node@v4 with: node-version: v20.x @@ -120,4 +120,4 @@ jobs: - working-directory: ./packages/dhkem-secp256k1/test/runtimes/browsers run: npm install && npx playwright install && npx playwright test - working-directory: ./packages/hpke-js/test/runtimes/browsers - run: npm install && npx playwright install && npx playwright test \ No newline at end of file + run: npm install && npx playwright install && npx playwright test diff --git a/.github/workflows/ci_bun.yml b/.github/workflows/ci_bun.yml index 2b33ead1a..6560003cf 100644 --- a/.github/workflows/ci_bun.yml +++ b/.github/workflows/ci_bun.yml @@ -2,9 +2,9 @@ name: bun CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] permissions: contents: read @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: - deno-version: v1.x + deno-version: 2.x - uses: actions/setup-node@v4 with: node-version: v20.x @@ -28,4 +28,4 @@ jobs: deno task npm deno task bun-link - name: Run test - run: deno task test:bun \ No newline at end of file + run: deno task test:bun diff --git a/.github/workflows/ci_cloudflare.yml b/.github/workflows/ci_cloudflare.yml index 465a06776..4738aa610 100644 --- a/.github/workflows/ci_cloudflare.yml +++ b/.github/workflows/ci_cloudflare.yml @@ -2,9 +2,9 @@ name: Cloudflare Workers CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] permissions: contents: read @@ -16,11 +16,11 @@ jobs: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: - deno-version: v1.x + deno-version: 2.x - uses: actions/setup-node@v4 with: node-version: v20.x - name: Prepare test run: deno task npm - name: Run test - run: deno task test:cloudflare \ No newline at end of file + run: deno task test:cloudflare diff --git a/.github/workflows/ci_node.yml b/.github/workflows/ci_node.yml index 72150fa4c..ad83c9460 100644 --- a/.github/workflows/ci_node.yml +++ b/.github/workflows/ci_node.yml @@ -2,9 +2,9 @@ name: Node.js CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: build: @@ -21,7 +21,7 @@ jobs: node-version: ${{ matrix.node-version }} - uses: denoland/setup-deno@v1 with: - deno-version: v1.x + deno-version: 2.x - name: Run dnt & minify run: | npm install -g esbuild @@ -88,4 +88,4 @@ jobs: deno task minify > ../../npm/packages/hpke-js/hpke.min.js - name: Publish to npm (dry) for /packages/hpke-js working-directory: ./npm/packages/hpke-js - run: npm publish --dry-run \ No newline at end of file + run: npm publish --dry-run diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 8256f855d..23896ba28 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,12 +13,12 @@ name: "CodeQL" on: push: - branches: [ main ] + branches: [main] pull_request: # The branches below must be a subset of the branches above - branches: [ main ] + branches: [main] schedule: - - cron: '38 17 * * 6' + - cron: "38 17 * * 6" jobs: analyze: @@ -32,41 +32,40 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'javascript' ] + language: ["javascript"] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout repository + uses: actions/checkout@v4 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # queries: security-extended,security-and-quality - # âšī¸ Command-line programs to run using the OS shell. - # đ See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + # âšī¸ Command-line programs to run using the OS shell. + # đ See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e93b0f8fe..0f06471af 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: - deno-version: v1.x + deno-version: 2.x - name: Run dnt run: | deno task test diff --git a/README.md b/README.md index 7a500748e..3a9fc59b9 100644 --- a/README.md +++ b/README.md @@ -454,7 +454,12 @@ Browsers:
diff --git a/deno.json b/deno.json index a90195415..5ee49a00d 100644 --- a/deno.json +++ b/deno.json @@ -37,6 +37,7 @@ "test": { "exclude": [ "npm/", + "**/*.md", "**/*/*.js", "**/*/npm/", "**/*/.wrangler/", @@ -45,7 +46,7 @@ }, "tasks": { "test:all": "deno task test && deno task npm && deno task test:cloudflare && deno task bun-link && deno task test:bun", - "test": "deno fmt && deno lint && deno test --import-map=./import_map.json -A --fail-fast --doc --coverage=coverage --parallel --allow-read", + "test": "deno fmt && deno lint && deno test --import-map=./import_map.json --fail-fast --doc --coverage=coverage --parallel --allow-read", "test:common": "cd packages/common && deno task test", "test:core": "cd packages/core && deno task test", "test:chacha20poly1305": "cd packages/chacha20poly1305 && deno task test", diff --git a/packages/chacha20poly1305/README.md b/packages/chacha20poly1305/README.md index 64de0058a..4cdcb1cbe 100644 --- a/packages/chacha20poly1305/README.md +++ b/packages/chacha20poly1305/README.md @@ -216,7 +216,9 @@ try {