Skip to content

chore(deps-dev): bump @types/k6 from 0.54.2 to 0.57.0 #270

chore(deps-dev): bump @types/k6 from 0.54.2 to 0.57.0

chore(deps-dev): bump @types/k6 from 0.54.2 to 0.57.0 #270

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/finance-management-api-test-db" # Changed to match URL format
LOG_LEVEL: silent
NODE_ENV: test
# Add PostgreSQL service
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: finance-management-api-test-db
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Check Types
run: bun check-types
- name: Run ESLint
run: bun lint:fix
- name: Run tests
run: bun run test