-
-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (48 loc) · 1.21 KB
/
test-frontend.yml
File metadata and controls
58 lines (48 loc) · 1.21 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
57
58
name: Frontend Tests
on:
workflow_call:
outputs:
coverage-artifact:
description: "Frontend coverage artifact name"
value: ${{ jobs.test.outputs.coverage-artifact }}
jobs:
test:
name: Frontend Build + Lint
runs-on: ubuntu-latest
outputs:
coverage-artifact: frontend-coverage
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: webapp/package-lock.json
- name: Install dependencies
run: |
cd webapp
npm ci --no-audit --no-fund --no-progress
- name: Run TypeScript check
run: |
cd webapp
npx vue-tsc -b
- name: Run i18n check
run: |
cd webapp
npm run lint:i18n
- name: Build frontend
run: |
cd webapp
npm run build
- name: Run unit tests with coverage
run: |
cd webapp
npm run test:coverage
- name: Upload frontend coverage artifact
uses: actions/upload-artifact@v4
with:
name: frontend-coverage
path: webapp/coverage/lcov.info
retention-days: 1