Skip to content

Merge pull request #186 from kysely-org/dependabot/npm_and_yarn/types… #492

Merge pull request #186 from kysely-org/dependabot/npm_and_yarn/types…

Merge pull request #186 from kysely-org/dependabot/npm_and_yarn/types… #492

Workflow file for this run

name: Tests
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
run-node-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run docker compose
run: docker compose up -d
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Build
run: pnpm run build
- name: Test
run: pnpm run test:nodejs
run-misc-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Build
run: pnpm run build
- name: Type Check
run: pnpm run type-check
- name: Lint
run: pnpm run lint