Skip to content

refactor: use slave db in car rental read repository #67

refactor: use slave db in car rental read repository

refactor: use slave db in car rental read repository #67

Workflow file for this run

name: Validate
on:
push:
branches:
- '*'
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
services:
postgres:
image: postgres:13.12
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: megahertz
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn test unit
- run: yarn test integration --runInBand --detectOpenHandles --force-exit
- run: yarn test e2e --runInBand --detectOpenHandles --force-exit