feat(schema): col.defaultCurrentTimestamp(precision?) [REOPENED]
#3892
Workflow file for this run
This file contains hidden or 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: test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '.github/workflows/preview.yml' | |
| - 'assets/**' | |
| - 'docs/**' | |
| - 'example/**' | |
| - 'site/**' | |
| - '.node-version' | |
| - '.nvmrc' | |
| - '.prettierignore' | |
| - '.prettierrc.json' | |
| - '*.md' | |
| - 'LICENSE' | |
| pull_request: | |
| paths-ignore: | |
| - '.github/workflows/preview.yml' | |
| - 'assets/**' | |
| - 'docs/**' | |
| - 'example/**' | |
| - 'site/**' | |
| - '.node-version' | |
| - '.nvmrc' | |
| - '.prettierignore' | |
| - '.prettierrc.json' | |
| - '*.md' | |
| - 'LICENSE' | |
| workflow_dispatch: | |
| jobs: | |
| node: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # https://endoflife.date/nodejs | |
| node-version: [20.x, 22.x, 24.x] | |
| with-transformer: [false, true] | |
| runs-on: ubuntu-latest | |
| name: Node.js (${{ matrix.node-version }})${{ matrix.with-transformer && ' /w transformer' || '' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run docker compose | |
| run: docker compose up -d | |
| - name: Run node tests | |
| run: ${{ matrix.with-transformer && 'TEST_TRANSFORMER=1 ' || '' }}pnpm test | |
| - name: Run esbuild test | |
| if: ${{ !matrix.with-transformer }} | |
| run: pnpm test:esbuild | |
| deno: | |
| name: Deno | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # https://endoflife.date/deno | |
| deno-version: [2.1.x, 2.2.x, 2.3.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: lts/* | |
| - name: Use Deno ${{ matrix.deno-version }} | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: ${{ matrix.deno-version }} | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run docker compose | |
| run: docker compose up -d | |
| - name: Build | |
| run: pnpm build | |
| - name: Run deno tests | |
| run: pnpm test:deno | |
| bun: | |
| name: Bun | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| bun-version: [1.1, 1.2] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Use Bun ${{ matrix.bun-version }} | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ matrix.bun-version }} | |
| - name: Run docker compose | |
| run: docker compose up -d | |
| - name: Run bun tests | |
| run: pnpm test:bun | |
| browser: | |
| name: Browser | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Install playwright | |
| run: pnpx playwright install chromium | |
| - name: Run browser tests | |
| run: pnpm test:browser | |
| cloudflare-workers: | |
| name: Cloudflare Workers | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run docker compose | |
| run: docker compose up -d | |
| - name: Run cloudflare workers test | |
| run: pnpm test:cloudflare-workers | |
| older-typescript-version: | |
| name: Older TypeScript version | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| typescript-version: [ | |
| ^4.6, # 28.2.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-6/ | |
| ^4.7, # 24.5.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/ | |
| ^4.8, # 25.8.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/ | |
| ^4.9, # 15.11.2022 https://devblogs.microsoft.com/typescript/announcing-typescript-4-9/ | |
| ^5.0, # 16.3.2023 https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/ | |
| ^5.2, # 24.8.2023 https://devblogs.microsoft.com/typescript/announcing-typescript-5-1/ https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/ | |
| ^5.3, # 20.11.2023 https://devblogs.microsoft.com/typescript/announcing-typescript-5-3/ | |
| ^5.4, # 6.3.2024 https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/ | |
| ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: 20.x | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run build with newer TypeScript | |
| run: pnpm build | |
| - run: | | |
| echo "TS_VERSION=${{ matrix.typescript-version }}" >> $GITHUB_ENV | |
| echo "TSD_VERSION=${{ fromJson('{ "^4.6":"0.20.0", "^4.7":"0.22.0", "^4.8":"0.24.1", "^4.9":"0.27.0", "^5.0":"0.28.1", "^5.2":"0.29.0", "^5.3":"0.30.7", "^5.4":"0.31.2" }')[env.TS_VERSION] }} >> $GITHUB_ENV" | |
| - name: Install Typescript (${{ env.TS_VERSION }}) and TSD (${{ env.TSD_VERSION }}) | |
| run: pnpm i -w -D typescript@${{ env.TS_VERSION }} tsd@${{ env.TSD_VERSION }} | |
| - name: Exclude non-backward compatible tests | |
| run: pnpx tsx ./scripts/exclude-test-files-for-backwards-compat.mts | |
| - name: Run tests with older TypeScript version | |
| run: pnpm test:typings && pnpm test:node:build | |
| jsdocs: | |
| name: JSDocs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: lts/* | |
| - name: Use Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: 2.x | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build | |
| run: pnpm build | |
| - name: Type-check JSDocs code blocks | |
| run: pnpm test:jsdocs | |
| typescript-benchmarks: | |
| name: TypeScript Benchmarks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run benchmarks | |
| run: pnpm bench:ts | |
| typescript-native: | |
| name: TypeScript Native | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: pnpm i && pnpm i -w -D @typescript/native-preview | |
| - name: Build | |
| run: pnpm build | |
| - name: Run TypeScript Native tests | |
| run: pnpm tsgo --project ./tsconfig.json && pnpm tsgo --project ./test/node/tsconfig.json |