Skip to content

Commit 863eeaa

Browse files
committed
chore: migrate from deprecated upload-artifact
1 parent d6d1f26 commit 863eeaa

File tree

1 file changed

+10
-44
lines changed

1 file changed

+10
-44
lines changed

.github/workflows/verify-storybook-builder.yml

+10-44
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,22 @@ name: Verify Storybook Builder
33
on: pull_request
44

55
jobs:
6-
verify-storybook-builder-linux:
6+
verify-storybook-builder:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
runs-on: [ubuntu-24.04, windows-2022]
11+
runs-on: ${{ matrix.runs-on }}
712
timeout-minutes: 60
8-
name: Linux
9-
runs-on: ubuntu-22.04
1013
steps:
1114
- uses: actions/checkout@v4
1215

13-
- name: Setup Node 20
16+
- name: Setup Node 22
1417
uses: actions/setup-node@v4
1518
env:
1619
FORCE_COLOR: 0
1720
with:
18-
node-version: 20
21+
node-version: 22
1922
cache: npm
2023

2124
- name: Install Dependencies
@@ -33,46 +36,9 @@ jobs:
3336
- name: Run tests
3437
run: npm run test:storybook-builder
3538

36-
- uses: actions/upload-artifact@v3
39+
- uses: actions/upload-artifact@v4
3740
if: always()
3841
with:
39-
name: playwright-report
40-
path: packages/storybook-framework-web-components/playwright-report/
41-
retention-days: 30
42-
43-
verify-storybook-builder-windows:
44-
timeout-minutes: 60
45-
name: Windows
46-
runs-on: windows-2022
47-
steps:
48-
- uses: actions/checkout@v4
49-
50-
- name: Setup Node 20
51-
uses: actions/setup-node@v4
52-
env:
53-
FORCE_COLOR: 0
54-
with:
55-
node-version: 20
56-
cache: npm
57-
58-
- name: Install Dependencies
59-
run: npm ci
60-
61-
- name: Build packages
62-
run: npm run build
63-
64-
- name: Symlink built packages binaries (e.g. "wds")
65-
run: npm ci
66-
67-
- name: Install Playwright Browsers
68-
run: npx playwright install --with-deps
69-
70-
- name: Run tests
71-
run: npm run test:storybook-builder
72-
73-
- uses: actions/upload-artifact@v3
74-
if: always()
75-
with:
76-
name: playwright-report
42+
name: playwright-report-${{ matrix.runs-on }}
7743
path: packages/storybook-framework-web-components/playwright-report/
7844
retention-days: 30

0 commit comments

Comments
 (0)