[Drizzle] Add integration tests #1719
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: TypeScript TSC Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
tsc: | |
name: TypeScript Version Check | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'workflow_dispatch' || github.head_ref == 'changeset-release/main' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
target: ['next', 'beta', 'latest', '5.1.6', '5.0.4', '4.9.5', '4.8.4', '4.7.4'] | |
steps: | |
- name: π Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.9.1 | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v3 | |
- name: β Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.5 | |
- name: β Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: π₯ Install project dependencies | |
run: pnpm install --frozen-lockfile | |
- name: π¦ Install TypeScript ${{ matrix.target }} | |
run: pnpm add --workspace-root typescript@${{ matrix.target }} | |
- name: π·π»ββοΈ Compile | |
run: pnpm build | |
- name: π Type-check code | |
run: pnpm tsc |