11name : Frontend
22
33on :
4- push :
5- branches : [6.0]
6- paths :
7- - packages/skeleton/**
8- - packages/sprinkle-account/**
9- - packages/sprinkle-admin/**
10- - packages/sprinkle-core/**
11- - packages/theme-pink-cupcake/**
12- pull_request :
13- branches : [6.0]
14- workflow_dispatch :
4+ push :
5+ branches : [6.0]
6+ paths :
7+ - packages/skeleton/**
8+ - packages/sprinkle-account/**
9+ - packages/sprinkle-admin/**
10+ - packages/sprinkle-core/**
11+ - packages/theme-pink-cupcake/**
12+ pull_request :
13+ branches : [6.0]
14+ workflow_dispatch :
1515
1616jobs :
17- Build :
18- strategy :
19- fail-fast : false
20- matrix :
21- node_versions : [18, 22, 24]
22-
23- runs-on : ubuntu-latest
24- name : Build - Node ${{ matrix.node_versions }}
25-
26- steps :
27- - uses : actions/checkout@v4
28-
29- - uses : actions/setup-node@v4
30- with :
31- node-version : ${{ matrix.node_versions }}
32-
33- - name : Install Dependencies
34- run : npm ci
35-
36- - name : Build Packages
37- run : npm run build
38-
39- - name : Build Skeleton
40- run : npm run --workspace=userfrosting vite:build
41-
42- Coverage :
43- strategy :
44- fail-fast : false
45- matrix :
46- node_versions : [18, 22, 24]
47-
48- runs-on : ubuntu-latest
49- name : Test & Coverage - Node ${{ matrix.node_versions }}
50-
51- steps :
52- - uses : actions/checkout@v4
53-
54- - uses : actions/setup-node@v4
55- with :
56- node-version : ${{ matrix.node_versions }}
57-
58- - name : Install Dependencies
59- run : npm ci
60-
61- - name : Test & Coverage
62- run : npm run coverage
63-
64- - name : Upload coverage to Codecov
65- if : github.event_name != 'schedule'
66- uses : codecov/codecov-action@v5
67- with :
68- token : ${{ secrets.CODECOV_TOKEN }}
69- files : ./_meta/_coverage/clover.xml
70- fail_ci_if_error : true
71-
72- - name : Upload test results to Codecov
73- if : ${{ !cancelled() }}
74- uses : codecov/test-results-action@v1
75- with :
76- files : ./_meta/junit_frontend.xml
77- token : ${{ secrets.CODECOV_TOKEN }}
78-
79- Prettier :
80- runs-on : ubuntu-latest
81- name : Code Style Check
82-
83- steps :
84- - uses : actions/checkout@v4
85-
86- - uses : actions/setup-node@v4
87- with :
88- node-version : 24
89-
90- - name : Install Dependencies
91- run : npm ci
92-
93- - name : Prettier dry run
94- run : npm run format-dry-run
95-
96- - name : TypeCheck
97- run : npm run typecheck
98-
99- - name : Eslint
100- run : npm run lint
17+ Build :
18+ strategy :
19+ fail-fast : false
20+ matrix :
21+ node_versions : [18, 22, 24]
22+
23+ runs-on : ubuntu-latest
24+ name : Build - Node ${{ matrix.node_versions }}
25+
26+ steps :
27+ - uses : actions/checkout@v4
28+
29+ - uses : actions/setup-node@v4
30+ with :
31+ node-version : ${{ matrix.node_versions }}
32+
33+ - name : Install Dependencies
34+ run : npm ci
35+
36+ - name : Build Packages
37+ run : npm run build
38+
39+ - name : Build Skeleton
40+ run : npm run --workspace=userfrosting vite:build
41+
42+ Coverage :
43+ strategy :
44+ fail-fast : false
45+ matrix :
46+ node_versions : [18, 22, 24]
47+
48+ runs-on : ubuntu-latest
49+ name : Test & Coverage - Node ${{ matrix.node_versions }}
50+
51+ steps :
52+ - uses : actions/checkout@v4
53+
54+ - uses : actions/setup-node@v4
55+ with :
56+ node-version : ${{ matrix.node_versions }}
57+
58+ - name : Install Dependencies
59+ run : npm ci
60+
61+ - name : Test & Coverage
62+ run : npm run coverage
63+
64+ - name : Upload coverage to Codecov
65+ if : github.event_name != 'schedule'
66+ uses : codecov/codecov-action@v5
67+ with :
68+ token : ${{ secrets.CODECOV_TOKEN }}
69+ files : ./_meta/_coverage/clover.xml
70+ fail_ci_if_error : true
71+
72+ - name : Upload test results to Codecov
73+ if : ${{ !cancelled() }}
74+ uses : codecov/test-results-action@v1
75+ with :
76+ files : ./_meta/junit_frontend.xml
77+ token : ${{ secrets.CODECOV_TOKEN }}
78+
79+ Prettier :
80+ runs-on : ubuntu-latest
81+ name : Code Style Check
82+
83+ steps :
84+ - uses : actions/checkout@v4
85+
86+ - uses : actions/setup-node@v4
87+ with :
88+ node-version : 24
89+
90+ - name : Install Dependencies
91+ run : npm ci
92+
93+ - name : Prettier dry run
94+ run : npm run format-dry-run
95+
96+ - name : TypeCheck
97+ run : npm run typecheck
98+
99+ - name : Eslint
100+ run : npm run lint
0 commit comments