99 - main
1010
1111jobs :
12- unit-tests :
12+ check-commit :
1313 runs-on : ubuntu-latest
1414
1515 steps :
16- - uses : actions/checkout@v3
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
1718 with :
1819 fetch-depth : 0
19-
20- - name : Setup node
21- uses : actions/setup-node@v3
22- with :
23- node-version : 22
24-
25- - name : Install dependencies
26- run : |
27- corepack enable
28- corepack prepare --activate
29- pnpm install --frozen-lockfile
20+
21+ - name : Setup Environment
22+ uses : ./.github/actions/setup-workspace
3023
3124 - name : Check commit message
3225 if : ${{ github.event_name == 'pull_request' }}
3326 run : pnpm commitlint ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
3427
35- - name : Build, linting & Unit testing
28+ lint :
29+ runs-on : ubuntu-latest
30+ steps :
31+ - name : Checkout repository
32+ uses : actions/checkout@v4
33+ with :
34+ fetch-depth : 0
35+
36+ - name : Setup Environment
37+ uses : ./.github/actions/setup-workspace
38+
39+ - name : Lint
3640 env :
3741 NODE_OPTIONS : " --max-old-space-size=4096"
3842 run : |
3943 git diff --exit-code
4044 pnpm build
4145 pnpm check
46+
47+ build :
48+ runs-on : ubuntu-latest
49+ steps :
50+ - name : Checkout repository
51+ uses : actions/checkout@v4
52+ with :
53+ fetch-depth : 0
54+
55+ - name : Setup Environment
56+ uses : ./.github/actions/setup-workspace
57+
58+ - name : Build
59+ env :
60+ NODE_OPTIONS : " --max-old-space-size=4096"
61+ run : |
62+ git diff --exit-code
63+ pnpm build
64+
65+ unit-tests :
66+ runs-on : ubuntu-latest
67+ steps :
68+ - name : Checkout repository
69+ uses : actions/checkout@v4
70+ with :
71+ fetch-depth : 0
72+
73+ - name : Setup Environment
74+ uses : ./.github/actions/setup-workspace
75+
76+ - name : Test
77+ env :
78+ NODE_OPTIONS : " --max-old-space-size=4096"
79+ run : |
80+ git diff --exit-code
81+ pnpm build
4282 pnpm test
83+
84+ check-deps :
85+ runs-on : ubuntu-latest
86+ steps :
87+ - name : Checkout repository
88+ uses : actions/checkout@v4
89+ with :
90+ fetch-depth : 0
91+
92+ - name : Setup Environment
93+ uses : ./.github/actions/setup-workspace
94+
95+ - name : check unused dependencies
96+ env :
97+ NODE_OPTIONS : " --max-old-space-size=4096"
98+ run : |
99+ git diff --exit-code
100+ pnpm check:unused-deps
101+
0 commit comments