Skip to content

chore(deps): update dependency @prisma/client to v7 #708

chore(deps): update dependency @prisma/client to v7

chore(deps): update dependency @prisma/client to v7 #708

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install Bun
uses: oven-sh/[email protected]
- name: Use cached node_modules
uses: actions/[email protected]
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lock') }}
restore-keys: |
node-modules-
- name: Install Dependencies
run: bun install
- name: Lint
run: bun run lint
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install Bun
uses: oven-sh/[email protected]
- name: Use cached node_modules
uses: actions/[email protected]
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lock') }}
restore-keys: |
node-modules-
- name: Install Dependencies
run: bun install
- name: Typecheck
run: bun --bun run typecheck
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: test_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_db
steps:
- uses: actions/[email protected]
- name: Install Bun
uses: oven-sh/[email protected]
- name: Use cached node_modules
uses: actions/[email protected]
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lock') }}
restore-keys: |
node-modules-
- name: Install Dependencies
run: bun install
- name: Wait for PostgreSQL
run: |
echo "Waiting for PostgreSQL to be ready..."
timeout 60 bash -c 'until pg_isready -h localhost -p 5432 -U postgres; do sleep 1; done'
echo "PostgreSQL is ready!"
- name: Unit Tests
run: bun run test
publish-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install Bun
uses: oven-sh/[email protected]
- name: Use cached node_modules
uses: actions/[email protected]
with:
path: node_modules
key: node-modules-${{ hashFiles('**/bun.lock') }}
restore-keys: |
node-modules-
- name: Install Dependencies
run: bun install
- name: Build
run: bun run build
- name: Publish Commit
run: bunx pkg-pr-new publish "./packages/bun-query-builder"