Skip to content

fix: return DateFieldBuilder from defaultNow() and onUpdateNow() for proper method chaining #30

fix: return DateFieldBuilder from defaultNow() and onUpdateNow() for proper method chaining

fix: return DateFieldBuilder from defaultNow() and onUpdateNow() for proper method chaining #30

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10.1.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Cache MongoDB binaries
uses: actions/cache@v4
with:
path: ~/.cache/mongodb-binaries
key: mongodb-binaries-${{ runner.os }}-${{ hashFiles('**/package.json') }}
restore-keys: |
mongodb-binaries-${{ runner.os }}-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Typecheck
run: pnpm typecheck
# - name: Lint
# run: pnpm lint
- name: Build
run: pnpm build
- name: Pre-download MongoDB binaries
run: |
node -e "const { MongoMemoryServer } = require('mongodb-memory-server'); MongoMemoryServer.create().then(m => m.stop());"
working-directory: packages/mizzle-orm
- name: Test
run: pnpm test