diff --git a/.github/actions/init-bun/action.yml b/.github/actions/init-bun/action.yml deleted file mode 100644 index af4e51e4..00000000 --- a/.github/actions/init-bun/action.yml +++ /dev/null @@ -1,16 +0,0 @@ -inputs: - bun-version: - default: '1.0.32' - -runs: - using: 'composite' - steps: - - name: Use Bun ${{ inputs.bun-version }} - uses: oven-sh/setup-bun@v1 - with: - bun-version: ${{ inputs.bun-version }} - - run: bun install # can't re-use pnpm-lock, see https://github.com/oven-sh/bun/issues/7157 - shell: bash - - name: 'TL codegen' - run: bun run packages/tl/scripts/gen-code.ts - shell: bash \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 68f565ea..5be397fb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -43,19 +43,35 @@ jobs: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: files: ./coverage/coverage-final.json - + test-bun: runs-on: ubuntu-latest needs: lint steps: - uses: actions/checkout@v4 - uses: ./.github/actions/init - - uses: ./.github/actions/init-bun + - uses: oven-sh/setup-bun@v1 + with: + bun-version: '1.1.4' - name: 'Build tests' run: pnpm exec vite build -c .config/vite.bun.mts - name: 'Run tests' run: cd dist/tests && bun test + test-deno: + runs-on: ubuntu-latest + needs: lint + steps: + - uses: actions/checkout@v4 + - uses: ./.github/actions/init + - uses: denoland/setup-deno@v1 + with: + deno-version: 2f5a6a8514ad8eadce1a0a9f1a7a419692e337ef + - name: 'Build tests' + run: pnpm exec vite build -c .config/vite.deno.mts + - name: 'Run tests' + run: cd dist/tests && deno test + test-web: runs-on: ubuntu-latest needs: lint @@ -78,7 +94,7 @@ jobs: e2e: runs-on: ubuntu-latest - needs: [test-node, test-web, test-bun] + needs: [test-node, test-web, test-bun, test-deno] permissions: contents: read actions: write @@ -100,7 +116,7 @@ jobs: run: cd e2e/node && ./cli.sh ci-publish e2e-deno: runs-on: ubuntu-latest - needs: [test-node, test-web, test-bun] + needs: [test-node, test-web, test-bun, test-deno] permissions: contents: read actions: write