diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0fdb25a9de..64c2a0a6cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -243,3 +243,30 @@ jobs: with: name: denoDist path: ./denoDist + + type-check-deno-dist: + name: Type check denoDist on Deno v${{ matrix.deno_version_to_setup }} + needs: build-deno-dist + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + # Keep minors pinned to preserve backward-compat coverage; include v2.x + # so CI also exercises the latest Deno release used for publishing. + deno_version_to_setup: [2.4.x, 2.5.x, 2.6.x, 2.7.x, v2.x] + permissions: + contents: read # for actions/download-artifact + steps: + - name: Download denoDist package + uses: actions/download-artifact@v4 + with: + name: denoDist + path: ./denoDist + + - name: Setup Deno v${{ matrix.deno_version_to_setup }} + uses: denoland/setup-deno@v2 + with: + deno-version: ${{ matrix.deno_version_to_setup }} + + - name: Check denoDist package + run: deno check ./denoDist/index.ts diff --git a/resources/integration-test.ts b/resources/integration-test.ts index ca99b99fdd..1eb240d5d5 100644 --- a/resources/integration-test.ts +++ b/resources/integration-test.ts @@ -4,6 +4,8 @@ import { describe, it } from 'mocha'; import { localRepoPath, makeTmpDir, npm, readPackageJSON } from './utils.js'; +// Keep these pinned to minimum supported runtime versions so integration +// checks continue to verify backward compatibility behavior. const BUN_VERSION = '1.2.18'; const DENO_VERSION = '2.4.1';