Skip to content

fix: reorder exports to avoid circular dependency #117

fix: reorder exports to avoid circular dependency

fix: reorder exports to avoid circular dependency #117

Workflow file for this run

name: Trotsky CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['20.x', '22.x']
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn
- name: Run linter
run: yarn lint
- name: Run tests
run: yarn test
env:
DB_POSTGRES_URL: "postgresql://postgres:postgres@localhost:5432/postgres"
REDIS_HOST: "localhost"