File tree Expand file tree Collapse file tree 1 file changed +70
-14
lines changed Expand file tree Collapse file tree 1 file changed +70
-14
lines changed Original file line number Diff line number Diff line change 77 - ' src/**' # Only run when files in this directory change
88 - ' styles/**'
99 - ' package.json'
10+
11+ permissions :
12+ contents : read
13+
1014jobs :
11- build :
15+ setup :
16+ runs-on : ubuntu-latest
17+ outputs :
18+ node-modules-cache : ${{ steps.cache.outputs.cache-hit }}
19+ steps :
20+ - uses : actions/checkout@v4
21+ - name : Setup Node.js
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : ' 20'
25+ cache : ' npm'
26+ - name : Install dependencies
27+ run : npm ci
28+
29+ test :
1230 runs-on : ubuntu-latest
31+ needs : setup
32+ steps :
33+ - uses : actions/checkout@v4
34+ - name : Setup Node.js
35+ uses : actions/setup-node@v4
36+ with :
37+ node-version : ' 20'
38+ cache : ' npm'
39+ - name : Install dependencies
40+ run : npm ci
41+ - name : Test
42+ run : npm test
1343
44+ build_css :
45+ runs-on : ubuntu-latest
46+ needs : test
47+ steps :
48+ - uses : actions/checkout@v4
49+ - name : Setup Node.js
50+ uses : actions/setup-node@v4
51+ with :
52+ node-version : ' 20'
53+ cache : ' npm'
54+ - name : Install dependencies
55+ run : npm ci
56+ - name : Clean dist
57+ run : npm run clean
58+ - name : Build CSS
59+ run : npm run build:css
60+
61+ build_components :
62+ runs-on : ubuntu-latest
63+ needs : test
64+ steps :
65+ - uses : actions/checkout@v4
66+ - name : Setup Node.js
67+ uses : actions/setup-node@v4
68+ with :
69+ node-version : ' 20'
70+ cache : ' npm'
71+ - name : Install dependencies
72+ run : npm ci
73+ - name : Clean dist
74+ run : npm run clean
75+ - name : Build Components
76+ run : npm run build:components
77+
78+ build :
79+ runs-on : ubuntu-latest
80+ needs : [build_css, build_components]
1481 steps :
15- - uses : actions/checkout@v4
16-
17- - name : Setup Node.js
18- uses : actions/setup-node@v4
19- with :
20- node-version : ' 20'
21- cache : ' npm'
22-
23- - name : Install dependencies
24- run : npm ci
25-
26- - name : Build
27- run : npm run build
82+ - name : Build Complete
83+ run : echo "Build finished. CSS and components built in parallel after tests."
You can’t perform that action at this time.
0 commit comments