Skip to content

Commit 378452c

Browse files
committed
ci: consolidate browser test matrix into single job
1 parent 1f15f62 commit 378452c

1 file changed

Lines changed: 4 additions & 33 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,9 @@ jobs:
7171
- run: npm run tsc
7272

7373
test:
74-
name: Test (${{ matrix.browser }})
74+
name: Test
7575
needs: install
7676
runs-on: ubuntu-latest
77-
strategy:
78-
fail-fast: false
79-
matrix:
80-
browser: [chromium, firefox, webkit]
8177
steps:
8278
- uses: actions/checkout@v6
8379
- uses: actions/setup-node@v6
@@ -93,40 +89,15 @@ jobs:
9389
- uses: actions/cache@v5
9490
with:
9591
path: ~/.cache/ms-playwright
96-
key: playwright-${{ matrix.browser }}-${{ hashFiles('**/package-lock.json') }}
97-
- run: npx playwright install --with-deps ${{ matrix.browser }}
92+
key: playwright-${{ hashFiles('**/package-lock.json') }}
93+
- run: npx playwright install --with-deps chromium firefox webkit
9894
- run: npx vitest run --project browser
9995
working-directory: packages/storybook-addon-performance-panel
100-
env:
101-
VITEST_BROWSER: ${{ matrix.browser }}
102-
103-
build:
104-
name: Build Docs
105-
needs: install
106-
runs-on: ubuntu-latest
107-
steps:
108-
- uses: actions/checkout@v6
109-
- uses: actions/setup-node@v6
110-
with:
111-
node-version-file: '.nvmrc'
112-
- uses: actions/cache/restore@v5
113-
with:
114-
path: |
115-
node_modules
116-
packages/*/node_modules
117-
packages/storybook-addon-performance-panel/dist
118-
key: deps-${{ github.sha }}
119-
- run: npm run build-storybook -w @github-ui/docs
120-
- uses: actions/upload-artifact@v6
121-
with:
122-
name: addon-dist
123-
path: packages/storybook-addon-performance-panel/dist/
124-
retention-days: 7
12596

12697
ci:
12798
name: CI
12899
if: always()
129-
needs: [lint, typecheck, test, build]
100+
needs: [lint, typecheck, test]
130101
runs-on: ubuntu-latest
131102
steps:
132103
- run: |

0 commit comments

Comments
 (0)