Skip to content

Commit feba454

Browse files
Merge branch 'main' into fix/issues-155-156-157-163-test-coverage
2 parents 19e1fc8 + 6e71c90 commit feba454

25 files changed

Lines changed: 9195 additions & 395 deletions

.github/workflows/bundle-size.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ jobs:
2424
uses: actions/setup-node@v4
2525
with:
2626
node-version: "20"
27-
cache: "npm"
2827

2928
- name: Install dependencies
30-
run: npm ci --legacy-peer-deps
29+
# This repo does not commit npm/yarn lockfiles, so npm ci and npm cache
30+
# setup cannot run on GitHub Actions.
31+
run: npm install --legacy-peer-deps
3132

3233

3334
- name: Build project
@@ -87,7 +88,7 @@ jobs:
8788
size-report.json
8889
8990
- name: Report failing sizes to PR
90-
if: failure() && github.event_name == 'pull_request'
91+
if: failure() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
9192
uses: actions/github-script@v7
9293
with:
9394
script: |

.github/workflows/deploy.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ jobs:
2525
uses: actions/setup-node@v4
2626
with:
2727
node-version: 20
28-
cache: 'npm'
2928

3029
- name: Install dependencies
31-
run: npm ci --legacy-peer-deps
30+
# This repo does not commit npm/yarn lockfiles, so npm ci and npm cache
31+
# setup cannot run on GitHub Actions.
32+
run: npm install --legacy-peer-deps
3233

3334

3435

@@ -55,10 +56,11 @@ jobs:
5556
uses: actions/setup-node@v4
5657
with:
5758
node-version: 20
58-
cache: 'npm'
5959

6060
- name: Install dependencies
61-
run: npm ci --legacy-peer-deps
61+
# This repo does not commit npm/yarn lockfiles, so npm ci and npm cache
62+
# setup cannot run on GitHub Actions.
63+
run: npm install --legacy-peer-deps
6264

6365

6466
- name: Build (production mode)

.github/workflows/readme-lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
node-version: 20
2626

2727
- name: Install dependencies
28-
run: npm ci
28+
# This repo does not commit npm/yarn lockfiles, so npm ci cannot run
29+
# on GitHub Actions.
30+
run: npm install
2931

3032
- name: Lint README (doctoc)
3133
run: npm run lint:readme

.github/workflows/snapshot-tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,27 @@ jobs:
1717
uses: actions/setup-node@v4
1818
with:
1919
node-version: "20"
20-
cache: "npm"
2120

2221
- name: Install dependencies
23-
run: npm ci --legacy-peer-deps
22+
# This repo does not commit npm/yarn lockfiles, so npm ci and npm cache
23+
# setup cannot run on GitHub Actions.
24+
run: npm install --legacy-peer-deps
2425

2526

2627
- name: Build project
2728
run: npm run build
2829

30+
fix/issues-155-156-157-163-test-coverage
2931
# Issue #156: Auth module snapshot tests (AuthComponents.snapshot.test.jsx)
3032
# are picked up automatically by vitest alongside all other snapshot suites.
3133
- name: Run snapshot tests (includes Auth module — Issue #156)
3234
run: npm test -- --reporter=verbose
3335

36+
- name: Run snapshot tests
37+
run: |
38+
npm test -- --reporter=verbose $(find src/test -name "*.snapshot.test.*" -print)
39+
main
40+
3441

3542
- name: Check for snapshot changes
3643
run: |

.github/workflows/staging.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ jobs:
2525
uses: actions/setup-node@v4
2626
with:
2727
node-version: 20
28-
cache: 'npm'
2928

3029
- name: Install dependencies
31-
run: npm ci --legacy-peer-deps
30+
# This repo does not commit npm/yarn lockfiles, so npm ci and npm cache
31+
# setup cannot run on GitHub Actions.
32+
run: npm install --legacy-peer-deps
3233

3334

3435
- name: Lint
@@ -51,10 +52,11 @@ jobs:
5152
uses: actions/setup-node@v4
5253
with:
5354
node-version: 20
54-
cache: 'npm'
5555

5656
- name: Install dependencies
57-
run: npm ci --legacy-peer-deps
57+
# This repo does not commit npm/yarn lockfiles, so npm ci and npm cache
58+
# setup cannot run on GitHub Actions.
59+
run: npm install --legacy-peer-deps
5860

5961

6062
- name: Build (staging mode)

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ yarn-debug.log*
66
yarn-error.log*
77
pnpm-debug.log*
88
lerna-debug.log*
9-
package-lock.json
10-
yarn.lock
9+
# package-lock.json and yarn.lock should be committed for CI installs
1110

1211
node_modules
1312
dist

0 commit comments

Comments
 (0)