-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (55 loc) · 1.62 KB
/
Copy pathtemporal-qa.yml
File metadata and controls
56 lines (55 loc) · 1.62 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
54
55
56
name: Temporal Quality Assurance
permissions:
contents: read
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main, develop]
paths:
- 'apps/temporal/**'
- 'apps/shared/**'
- 'packages/**'
- '.github/workflows/temporal-qa.yml'
workflow_dispatch:
jobs:
test-and-lint:
name: Temporal Quality Assurance
runs-on: ubuntu-latest
outputs:
environment: ${{ steps.env.outputs.environment }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Get Environment
id: env
uses: ./.github/actions/get-environment
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install dependencies (root)
run: npm install --ignore-scripts --no-package-lock
- name: Build shared packages
run: npm run build:packages
- name: Install dependencies (temporal)
working-directory: apps/temporal
run: npm install --ignore-scripts --no-package-lock
- name: Generate Prisma
working-directory: apps/temporal
run: npm run db:generate
env:
DATABASE_URL: "postgresql://localhost:5432/dummy"
- name: Lint
working-directory: apps/temporal
run: npm run lint
- name: Type Check
working-directory: apps/temporal
run: npm run type-check
- name: Build
working-directory: apps/temporal
run: npm run build
env:
DATABASE_URL: "postgresql://localhost:5432/dummy"
- name: Run tests
working-directory: apps/temporal
run: npm test