@@ -19,9 +19,33 @@ permissions:
1919 pull-requests : write # for PR comments
2020
2121jobs :
22+ check-affected :
23+ name : Check affected jobs (NX)
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout the repository
27+ uses : actions/checkout@v4
28+ with :
29+ fetch-depth : 0 # needed for https://github.com/marketplace/actions/nx-set-shas
30+
31+ - uses : pnpm/action-setup@v4
32+ - name : Set up node & dependencies
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version : 22
36+ cache : ' pnpm'
37+ - name : Install dependencies
38+ run : pnpm install --frozen-lockfile
39+
40+ - uses : nrwl/nx-set-shas@v4
41+ - name : Check affected
42+ run : pnpm nx affected -t rebuild-deps
43+
2244 report-electron-size :
2345 name : Report Electron size
2446 runs-on : ubuntu-latest
47+ needs :
48+ - check-affected
2549 steps :
2650 - name : Checkout the repository
2751 uses : actions/checkout@v4
5579 report-server-size :
5680 name : Report server size
5781 runs-on : ubuntu-latest
82+ needs :
83+ - check-affected
5884 steps :
5985 - name : Checkout the repository
6086 uses : actions/checkout@v4
87113 test_dev :
88114 name : Test development
89115 runs-on : ubuntu-latest
116+ needs :
117+ - check-affected
90118 steps :
91119 - name : Checkout the repository
92120 uses : actions/checkout@v4
@@ -107,6 +135,7 @@ jobs:
107135 runs-on : ubuntu-latest
108136 needs :
109137 - test_dev
138+ - check-affected
110139 steps :
111140 - uses : actions/checkout@v4
112141 - uses : pnpm/action-setup@v4
@@ -127,6 +156,7 @@ jobs:
127156 runs-on : ubuntu-latest
128157 needs :
129158 - build_docker
159+ - check-affected
130160 strategy :
131161 matrix :
132162 include :
0 commit comments