@@ -39,58 +39,48 @@ jobs:
3939 NEXT_PUBLIC_SENTRY_DISABLED : ' true' # Only upload Sentry source maps in deployment
4040 NEXT_PUBLIC_APP_URL : http://localhost:3008
4141
42- - if : matrix.node-version == '22 .x' && success()
42+ - if : matrix.node-version == '24 .x' && success()
4343 name : Cache Next.js build output
4444 uses : actions/cache/save@v5
4545 with :
4646 path : |
4747 .next
48+ next-env.d.ts
4849 key : nextjs-build-${{ matrix.node-version }}-${{ github.sha }}
4950
50- static :
51+ unit :
5152 strategy :
5253 matrix :
53- node-version : [22 .x]
54+ node-version : [24 .x]
5455
55- name : Run static checks
56+ name : Run unit tests
5657 runs-on : ubuntu-latest
5758 timeout-minutes : 10
5859
5960 steps :
6061 - uses : actions/checkout@v6
61- with :
62- fetch-depth : 0 # Retrieve Git history, needed to verify commits
6362
6463 - name : Set up Node.js environment
6564 uses : ./.github/actions/setup-project
6665 with :
6766 node-version : ${{ matrix.node-version }}
6867
69- - if : github.event_name == 'pull_request'
70- name : Validate all commits from PR
71- run : npx commitlint --from $BASE_SHA --to $HEAD_SHA --verbose
72- env :
73- BASE_SHA : ${{ github.event.pull_request.base.sha }}
74- HEAD_SHA : ${{ github.event.pull_request.head.sha }}
75-
76- - name : Linter
77- run : npm run lint
78-
79- - name : Type checking
80- run : npm run check:types
81-
82- - name : Check dependencies
83- run : npm run check:deps
68+ - name : Run unit tests
69+ uses : docker://mcr.microsoft.com/playwright:v1.58.2
70+ with :
71+ args : npm run test -- --coverage
8472
85- - name : I18n check
86- run : npm run check:i18n
73+ - name : Upload coverage reports to Codecov
74+ uses : codecov/codecov-action@v5
75+ env :
76+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
8777
88- unit :
78+ storybook :
8979 strategy :
9080 matrix :
91- node-version : [22 .x]
81+ node-version : [24 .x]
9282
93- name : Run unit tests
83+ name : Run Storybook
9484 runs-on : ubuntu-latest
9585 timeout-minutes : 10
9686
@@ -102,42 +92,52 @@ jobs:
10292 with :
10393 node-version : ${{ matrix.node-version }}
10494
105- - name : Run unit tests
95+ - name : Run storybook tests
10696 uses : docker://mcr.microsoft.com/playwright:v1.58.2
10797 with :
108- args : npm run test -- --coverage
109-
110- - name : Upload coverage reports to Codecov
111- uses : codecov/codecov-action@v5
112- env :
113- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
98+ args : npm run storybook:test
11499
115- storybook :
100+ static :
116101 strategy :
117102 matrix :
118- node-version : [22 .x]
103+ node-version : [24 .x]
119104
120- name : Run Storybook
105+ name : Run static checks
121106 runs-on : ubuntu-latest
122107 timeout-minutes : 10
108+ needs : [build]
123109
124110 steps :
125111 - uses : actions/checkout@v6
112+ with :
113+ fetch-depth : 0 # Retrieve Git history, needed to verify commits
126114
127115 - name : Set up Node.js environment
128116 uses : ./.github/actions/setup-project
129117 with :
130118 node-version : ${{ matrix.node-version }}
119+ restore-nextjs-cache : true
131120
132- - name : Run storybook tests
133- uses : docker://mcr.microsoft.com/playwright:v1.58.2
134- with :
135- args : npm run storybook:test
121+ - if : github.event_name == 'pull_request'
122+ name : Validate all commits from PR
123+ run : npx commitlint --from $BASE_SHA --to $HEAD_SHA --verbose
124+ env :
125+ BASE_SHA : ${{ github.event.pull_request.base.sha }}
126+ HEAD_SHA : ${{ github.event.pull_request.head.sha }}
127+
128+ - name : Linter
129+ run : npm run lint
130+
131+ - name : Check dependencies
132+ run : npm run check:deps
133+
134+ - name : I18n check
135+ run : npm run check:i18n
136136
137137 e2e :
138138 strategy :
139139 matrix :
140- node-version : [22 .x]
140+ node-version : [24 .x]
141141
142142 name : Run E2E tests
143143 runs-on : ubuntu-latest
0 commit comments