fix: remove unused postgres/valkey services from CI — tests are pure unit tests
This commit is contained in:
@@ -11,33 +11,6 @@ jobs:
|
|||||||
ci:
|
ci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
services:
|
|
||||||
postgres:
|
|
||||||
image: postgres:16
|
|
||||||
env:
|
|
||||||
POSTGRES_USER: lunarfront
|
|
||||||
POSTGRES_PASSWORD: lunarfront
|
|
||||||
POSTGRES_DB: lunarfront_test
|
|
||||||
options: >-
|
|
||||||
--health-cmd pg_isready
|
|
||||||
--health-interval 5s
|
|
||||||
--health-timeout 3s
|
|
||||||
--health-retries 5
|
|
||||||
|
|
||||||
valkey:
|
|
||||||
image: valkey/valkey:8
|
|
||||||
options: >-
|
|
||||||
--health-cmd "valkey-cli ping"
|
|
||||||
--health-interval 5s
|
|
||||||
--health-timeout 3s
|
|
||||||
--health-retries 5
|
|
||||||
|
|
||||||
env:
|
|
||||||
DATABASE_URL: postgresql://lunarfront:lunarfront@localhost:5432/lunarfront_test
|
|
||||||
REDIS_URL: redis://localhost:6379
|
|
||||||
JWT_SECRET: ci-secret
|
|
||||||
NODE_ENV: test
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -53,9 +26,5 @@ jobs:
|
|||||||
- name: Lint
|
- name: Lint
|
||||||
run: bun run lint
|
run: bun run lint
|
||||||
|
|
||||||
- name: Run migrations
|
|
||||||
working-directory: packages/backend
|
|
||||||
run: bunx drizzle-kit migrate
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: bun run test
|
run: bun run test
|
||||||
|
|||||||
Reference in New Issue
Block a user