Skip to content

Merge pull request #6 from kysely-org/dependabot/npm_and_yarn/types/n… #29

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

Merge pull request #6 from kysely-org/dependabot/npm_and_yarn/types/n… #29

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: [16.x, 18.x, 20.x]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- 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: Init database
run: pnpm init:db
- name: Test
run: pnpm test
run-misc-checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Build
run: pnpm build
- name: Type Check
run: pnpm type-check
- name: Lint
run: pnpm lint