-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.31 KB
/
Copy pathci.yml
File metadata and controls
53 lines (42 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm exec prisma generate --schema=prisma/schema.prisma
- run: pnpm turbo run build
- name: Run tests
run: pnpm turbo run test
env:
ACCESS_TOKEN_SECRET: ci-access-token-secret-at-least-32-chars!!
REFRESH_TOKEN_SECRET: ci-refresh-token-secret-at-least-32-chars!
NODE_ENV: test
LOG_LEVEL: error
- name: Lint
run: pnpm run lint
- name: E2E Tests
run: |
docker compose -f docker-compose.yml -f docker-compose.test.yml up \
--abort-on-container-exit --exit-code-from test-runner
env:
ACCESS_TOKEN_SECRET: ci-access-token-secret-at-least-32-chars!!
REFRESH_TOKEN_SECRET: ci-refresh-token-secret-at-least-32-chars!
- name: Run analytics-service tests
run: pnpm --filter @api-gateway/analytics-service run test
env:
NODE_ENV: test