-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (70 loc) · 1.94 KB
/
Copy pathci.yml
File metadata and controls
87 lines (70 loc) · 1.94 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: CI
on:
push:
branches:
- main
- master
- "v*"
pull_request:
permissions:
contents: read
jobs:
verify:
name: Maven Verify
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Java 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "21"
cache: maven
- name: Verify
run: mvn -B -T1 clean verify
- name: Coverage gate
shell: pwsh
run: ./scripts/check-coverage.ps1
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version: "26"
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Frontend install
working-directory: frontend
run: npm ci
- name: Frontend typecheck
working-directory: frontend
run: npm run typecheck
- name: Frontend build
working-directory: frontend
run: npm run build
- name: Frontend unit tests
working-directory: frontend
run: npm run test
- name: Frontend property tests
working-directory: frontend
env:
FAST_CHECK_NUM_RUNS: 500
run: npm run test:properties
- name: Frontend contrast check
run: node frontend/scripts/check-contrast.mjs
- name: Frontend e2e tests
if: ${{ env.E2E_FRONTEND_URL != '' }}
working-directory: frontend
run: npm run e2e
- name: Frontend bundle size check
run: node frontend/scripts/check-bundle-size.mjs
- name: Upload test reports on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: test-reports
path: |
**/target/surefire-reports/**
**/target/failsafe-reports/**
**/target/site/jacoco/**
if-no-files-found: ignore