-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (50 loc) · 1.63 KB
/
Copy pathfrontend-qa.yml
File metadata and controls
51 lines (50 loc) · 1.63 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
name: Frontend Quality Assurance
permissions:
contents: read
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [main, develop]
paths:
- 'apps/frontend/**'
- 'packages/**'
- '.github/workflows/frontend-qa.yml'
workflow_dispatch:
jobs:
test-and-lint:
name: Frontend 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
run: npm install --ignore-scripts --no-package-lock
- name: Build graph-workflow package
run: npm run build -w packages/graph-workflow
# The shared graph-workflow package (validator, cache-hash, ctx-binding)
# is consumed by the backend save-path, the temporal worker, and the
# canvas. This QA job triggers on packages/** so its jest suite runs here
# rather than shipping with zero CI-enforced coverage.
- name: Test graph-workflow package
run: npm run test -w packages/graph-workflow
- name: Run Linter
working-directory: apps/frontend
run: npm run lint
- name: Type Check
working-directory: apps/frontend
run: npm run type-check
- name: Production Build
working-directory: apps/frontend
run: npm run build
- name: Run Unit Tests
working-directory: apps/frontend
run: npm run test