99
1010jobs :
1111 install :
12- runs-on : ubuntu-latest
12+ runs-on : ubuntu-24.04
1313 steps :
1414 - name : Checkout
1515 uses : actions/checkout@v4
1616 with :
1717 fetch-depth : 0
18- - uses : nrwl/nx-set-shas@v4
19- - uses : ' ./.github/actions/cache'
18+ - uses : ' ./.github/actions/setup-environment'
2019 - uses : ' ./.github/actions/cypress-cache'
2120 - name : Install dependencies
2221 run : npm i
2322 build :
24- runs-on : ubuntu-latest
23+ runs-on : ubuntu-24.04
2524 needs : install
2625 steps :
2726 - name : Checkout
2827 uses : actions/checkout@v4
2928 with :
3029 fetch-depth : 0
31- - name : Use Node.js 22.x
32- uses : actions/setup-node@v3
33- with :
34- node-version : 22.x
30+ - uses : ' ./.github/actions/setup-environment'
3531 - uses : nrwl/nx-set-shas@v4
36- - uses : ' ./.github/actions/cache'
3732 - name : Build
3833 run : npm run build
3934 unit-test :
40- runs-on : ubuntu-latest
35+ runs-on : ubuntu-24.04
4136 needs : [install]
4237 steps :
4338 - name : Checkout
4439 uses : actions/checkout@v4
4540 with :
4641 fetch-depth : 0
47- - name : Use Node.js 22.x
48- uses : actions/setup-node@v3
49- with :
50- node-version : 22.x
42+ - uses : ' ./.github/actions/setup-environment'
5143 - uses : nrwl/nx-set-shas@v4
52- - uses : ' ./.github/actions/cache'
5344 - name : Run unit tests
5445 run : npm run test:unit
5546 component-test :
56- runs-on : ubuntu-latest
47+ runs-on : ubuntu-24.04
5748 needs : install
5849 steps :
5950 - name : Checkout
6051 uses : actions/checkout@v4
6152 with :
6253 fetch-depth : 0
54+ - uses : ' ./.github/actions/setup-environment'
6355 - uses : nrwl/nx-set-shas@v4
64- - uses : ' ./.github/actions/cache'
6556 - uses : ' ./.github/actions/cypress-cache'
6657 - name : Install deps
6758 shell : bash
@@ -70,27 +61,27 @@ jobs:
7061 uses : cypress-io/github-action@v6
7162 with :
7263 command : npx nx affected -t test:component --exclude=demo --configuration=ci --parallel=1
73- lint :
74- runs-on : ubuntu-latest
64+ lint :
65+ runs-on : ubuntu-24.04
7566 needs : install
7667 steps :
7768 - name : Checkout
7869 uses : actions/checkout@v4
7970 with :
8071 fetch-depth : 0
72+ - uses : ' ./.github/actions/setup-environment'
8173 - uses : nrwl/nx-set-shas@v4
82- - uses : ' ./.github/actions/cache'
8374 - name : Lint
8475 run : npx nx affected -t test:lint --exclude=demo
8576 commitlint :
8677 needs : [install]
87- runs-on : ubuntu-latest
78+ runs-on : ubuntu-24.04
8879 steps :
8980 - name : Checkout
9081 uses : actions/checkout@v4
9182 with :
9283 fetch-depth : 0
93- - uses : ' ./.github/actions/cache '
84+ - uses : ' ./.github/actions/setup-environment '
9485 - name : install
9586 shell : bash
9687 run : npm i
@@ -103,23 +94,22 @@ jobs:
10394 if : github.event_name == 'pull_request'
10495 run : npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
10596 check-circular-imports :
106- runs-on : ubuntu-latest
97+ runs-on : ubuntu-24.04
10798 needs : install
108- steps :
99+ steps :
109100 - name : Checkout
110101 uses : actions/checkout@v4
111102 with :
112103 fetch-depth : 0
113- - uses : ' ./.github/actions/cache'
104+ - uses : ' ./.github/actions/setup-environment'
105+ - uses : nrwl/nx-set-shas@v4
114106 - name : install
115107 shell : bash
116108 run : npm i
117- - uses : nrwl/nx-set-shas@v4
118- - uses : ' ./.github/actions/cache'
119109 - name : Check circular imports
120110 run : npx nx affected -t test:circular-dependencies --exclude=demo
121111 release :
122- runs-on : ubuntu-latest
112+ runs-on : ubuntu-24.04
123113 needs : [install, build, unit-test, component-test, lint, commitlint, check-circular-imports]
124114 if : github.event_name != 'pull_request'
125115 steps :
0 commit comments