Skip to content

Commit c7a3fba

Browse files
committed
ci: enhance CI configuration
1 parent 7b462d3 commit c7a3fba

3 files changed

Lines changed: 22 additions & 7 deletions

File tree

.github/workflows/ci-quality-checks.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,16 @@ jobs:
5555
- name: Setup Node.js
5656
uses: ./.github/actions/setup-node
5757

58+
- name: Restore ESLint cache
59+
uses: actions/cache@v6
60+
with:
61+
path: .eslintcache
62+
key: eslint-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'package.json', 'eslint.config.ts') }}-${{ github.sha }}
63+
restore-keys: |
64+
eslint-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'package.json', 'eslint.config.ts') }}-
65+
5866
- name: 🌡️ Run ESLint
59-
run: pnpm lint --quiet
67+
run: pnpm lint --quiet --cache --cache-location .eslintcache
6068

6169
typecheck:
6270
runs-on: ubuntu-latest

.github/workflows/dev-performance-log.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: ./.github/actions/setup-node
3939

4040
- name: Cache Playwright browsers
41-
uses: actions/cache@v4
41+
uses: actions/cache@v6
4242
with:
4343
path: ~/.cache/ms-playwright
4444
key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}

.github/workflows/e2e.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,15 @@ env:
1919

2020
jobs:
2121
e2e-test:
22+
name: e2e-test (${{ matrix.shard-index }}/${{ matrix.shard-total }})
2223
runs-on: ubuntu-latest
2324

25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
shard-index: [1, 2, 3, 4]
29+
shard-total: [4]
30+
2431
env:
2532
GH_TOKEN: ${{ github.token }}
2633

@@ -34,7 +41,7 @@ jobs:
3441
uses: ./.github/actions/setup-node
3542

3643
- name: Cache Playwright browsers
37-
uses: actions/cache@v4
44+
uses: actions/cache@v6
3845
with:
3946
path: ~/.cache/ms-playwright
4047
key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}
@@ -46,10 +53,10 @@ jobs:
4653
run: pnpm build:e2e
4754

4855
- name: Run Playwright Tests
49-
run: pnpm exec playwright test
56+
run: pnpm exec playwright test --shard=${{ matrix.shard-index }}/${{ matrix.shard-total }}
5057

5158
- name: Write Playwright Report to PR Comment
52-
uses: daun/playwright-report-summary@v3
59+
uses: daun/playwright-report-summary@v4
5360
if: always()
5461
with:
5562
report-file: playwright-report.json
@@ -59,14 +66,14 @@ jobs:
5966
uses: actions/upload-artifact@v4
6067
if: ${{ !cancelled() }}
6168
with:
62-
name: playwright-report
69+
name: playwright-report-${{ matrix.shard-index }}-of-${{ matrix.shard-total }}
6370
path: playwright-report/
6471
retention-days: 30
6572

6673
- name: Upload HeapSnapshots
6774
uses: actions/upload-artifact@v4
6875
if: ${{ failure() }}
6976
with:
70-
name: snapshots
77+
name: snapshots-${{ matrix.shard-index }}-of-${{ matrix.shard-total }}
7178
path: test-results/*.heapsnapshot
7279
retention-days: 3

0 commit comments

Comments
 (0)