Skip to content

Commit 34352ea

Browse files
authored
CI: Update actions to v4 (#28743)
1 parent e8e263e commit 34352ea

13 files changed

+109
-39
lines changed

.github/actions/run-qunit-tests/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ runs:
8181
node-version: '20'
8282

8383
- name: Download artifacts
84-
uses: actions/download-artifact@v3
84+
uses: actions/download-artifact@v4
8585
with:
8686
name: devextreme-artifacts
8787
path: packages/devextreme
@@ -145,7 +145,7 @@ runs:
145145
146146
- name: Copy RawLog.txt
147147
if: ${{ failure() }}
148-
uses: actions/upload-artifact@v3
148+
uses: actions/upload-artifact@v4
149149
with:
150150
name: RawLog-${{ env.MATRIX_ENVS_NAME_SAFE }}
151151
path: ${{ github.workspace }}/packages/devextreme/testing/RawLog.txt

.github/workflows/_security-alerts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
alert_type: Dependabot
4444
alerts_cache_file: dependabot_alerts.json
4545

46-
- uses: actions/upload-artifact@v3
46+
- uses: actions/upload-artifact@v4
4747
with:
4848
name: dependabot_alerts.json
4949
path: dependabot_alerts.json

.github/workflows/demos_visual_tests.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,18 +151,44 @@ jobs:
151151
message=$(cat $ACCESSIBILITY_TESTCAFE_REPORT_PATH)
152152
echo "::warning ::$message"
153153
154+
- name: Sanitize job name
155+
if: ${{ failure() }}
156+
run: echo "JOB_NAME=$(echo "${{ matrix.CONSTEL }}-${{ matrix.THEME }}" | tr '/' '-')" >> $GITHUB_ENV
157+
154158
- name: Copy screenshots artifacts
155159
if: failure() && matrix.STRATEGY == 'screenshots'
156-
uses: actions/upload-artifact@v3
160+
uses: actions/upload-artifact@v4
157161
with:
158-
name: screenshots
162+
name: screenshots-${{ env.JOB_NAME }}
159163
path: ${{ github.workspace }}/apps/demos/testing/artifacts/compared-screenshots/**/*
160164
if-no-files-found: ignore
161165

162166
- name: Copy accessibility report
163167
if: matrix.STRATEGY == 'accessibility'
164-
uses: actions/upload-artifact@v3
168+
uses: actions/upload-artifact@v4
165169
with:
166-
name: accessibility-reports
170+
name: accessibility-reports-${{ env.JOB_NAME }}
167171
path: apps/demos/testing/artifacts/axe-reports/*
168172
if-no-files-found: ignore
173+
174+
merge-artifacts:
175+
runs-on: devextreme-shr2
176+
needs: testcafe
177+
if: ${{ failure() }}
178+
179+
steps:
180+
- name: Merge screenshot artifacts
181+
uses: actions/upload-artifact/merge@v4
182+
continue-on-error: true
183+
with:
184+
name: screenshots
185+
pattern: screenshots-*
186+
delete-merged: true
187+
188+
- name: Merge accessibility reports
189+
uses: actions/upload-artifact/merge@v4
190+
continue-on-error: true
191+
with:
192+
name: accessibility-reports
193+
pattern: accessibility-reports-*
194+
delete-merged: true

.github/workflows/demos_visual_tests_frameworks.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,28 @@ jobs:
463463
CI_ENV: true # The `ignore` field in the visualtestrc.json should be disabled when running test locally
464464
run: pnpx nx test-testcafe
465465

466+
- name: Sanitize job name
467+
if: ${{ failure() }}
468+
run: echo "JOB_NAME=$(echo "${{ matrix.CONSTEL }}-${{ matrix.THEME }}" | tr '/' '-')" >> $GITHUB_ENV
469+
466470
- name: Copy screenshots artifacts
467471
if: ${{ failure() }}
468-
uses: actions/upload-artifact@v3
472+
uses: actions/upload-artifact@v4
469473
with:
470-
name: screenshots
474+
name: screenshots-${{ env.JOB_NAME }}
471475
path: ${{ github.workspace }}/apps/demos/testing/artifacts/compared-screenshots/**/*
472476
if-no-files-found: ignore
477+
478+
merge-artifacts:
479+
runs-on: devextreme-shr2
480+
needs: testcafe
481+
if: ${{ failure() }}
482+
483+
steps:
484+
- name: Merge screenshot artifacts
485+
uses: actions/upload-artifact/merge@v4
486+
continue-on-error: true
487+
with:
488+
name: screenshots
489+
pattern: screenshots-*
490+
delete-merged: true

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ jobs:
290290
pnpm install
291291
292292
- name: Upload lock-file
293-
uses: actions/upload-artifact@v3
293+
uses: actions/upload-artifact@v4
294294
with:
295295
name: package-lock.json
296296
path: ./package-lock.json

.github/workflows/packages_publishing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
- name: Build artifacts package
9393
run: npx ts-node tools/scripts/make-artifacts-package
9494

95-
- uses: actions/upload-artifact@v3
95+
- uses: actions/upload-artifact@v4
9696
with:
9797
name: packages
9898
path: artifacts/npm/*.tgz
@@ -123,7 +123,7 @@ jobs:
123123
sparse-checkout-cone-mode: false
124124

125125
- name: Download artifacts
126-
uses: actions/download-artifact@v3
126+
uses: actions/download-artifact@v4
127127
with:
128128
name: packages
129129

.github/workflows/playgrounds_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
7z a -tzip -mx3 -mmt2 artifacts.zip artifacts ../devextreme-scss/scss/bundles
6969
7070
- name: Upload build artifacts
71-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
7272
with:
7373
name: devextreme-artifacts
7474
path: ./packages/devextreme/artifacts.zip
@@ -97,12 +97,12 @@ jobs:
9797
chrome-version: '121.0.6167.160'
9898

9999
- name: Use Node.js
100-
uses: actions/setup-node@v3
100+
uses: actions/setup-node@v4
101101
with:
102102
node-version: '20'
103103

104104
- name: Download artifacts
105-
uses: actions/download-artifact@v3
105+
uses: actions/download-artifact@v4
106106
with:
107107
name: devextreme-artifacts
108108
path: ./packages/devextreme

.github/workflows/publish-demos.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
devextreme-react-installer.tgz
5353
devextreme-vue-installer.tgz
5454
retention-days: 1
55-
55+
5656
publish-ES:
5757
runs-on: ubuntu-latest
5858
needs: [build-devextreme]
@@ -92,7 +92,7 @@ jobs:
9292
- name: Prepare configs
9393
working-directory: apps/demos
9494
run: npm run prepare-js
95-
95+
9696
- name: Copy metadata
9797
working-directory: apps/demos
9898
run: npm run make-demos-bundle -- --copy-metadata
@@ -106,7 +106,7 @@ jobs:
106106
run: npm run make-demos-bundle -- --framework Vue
107107

108108
- name: Save publish-demos directory for ES as an artifact
109-
uses: actions/upload-artifact@v3
109+
uses: actions/upload-artifact@v4
110110
with:
111111
name: publish-demos
112112
path: ./apps/demos/publish-demos
@@ -140,10 +140,10 @@ jobs:
140140
command: CONSTEL=10/10 npm run make-demos-bundle -- --framework Angular
141141
steps:
142142
- name: Checkout code
143-
uses: actions/checkout@v3
143+
uses: actions/checkout@v4
144144

145145
- name: Setup Node.js v18
146-
uses: actions/setup-node@v3
146+
uses: actions/setup-node@v4
147147
with:
148148
node-version: 18
149149

@@ -195,19 +195,19 @@ jobs:
195195
- name: Angular post process index.html
196196
working-directory: apps/demos
197197
run: npm run post-process-angular
198-
198+
199199
- name: Save publish-demos directory for Angular as an artifact
200-
uses: actions/upload-artifact@v3
200+
uses: actions/upload-artifact@v4
201201
with:
202202
name: publish-demos
203203
path: ./apps/demos/publish-demos
204204

205205
deploy:
206206
runs-on: ubuntu-latest
207207
needs: [build-devextreme, publish-ES, publish-angular]
208-
steps:
208+
steps:
209209
- name: Download publish-demos artifact
210-
uses: actions/download-artifact@v3
210+
uses: actions/download-artifact@v4
211211
with:
212212
name: publish-demos
213213
path: ./apps/demos/publish-demos

.github/workflows/qunit_tests-additional-renovation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
7z a -tzip -mx3 -mmt2 artifacts.zip artifacts ../devextreme-scss/scss/bundles testing/tests/Renovation/widgets.json
7272
7373
- name: Upload build artifacts
74-
uses: actions/upload-artifact@v3
74+
uses: actions/upload-artifact@v4
7575
with:
7676
name: devextreme-artifacts
7777
path: packages/devextreme/artifacts.zip

.github/workflows/qunit_tests-renovation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
7z a -tzip -mx3 -mmt2 artifacts.zip artifacts ../devextreme-scss/scss/bundles testing/tests/Renovation/widgets.json
7171
7272
- name: Upload build artifacts
73-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
7474
with:
7575
name: devextreme-artifacts
7676
path: packages/devextreme/artifacts.zip

0 commit comments

Comments
 (0)