File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,12 +14,13 @@ jobs:
1414 runs-on : ubuntu-latest
1515 permissions :
1616 contents : read
17- pull-requests : write # post the findings summary as a PR comment
1817 steps :
1918 - uses : actions/checkout@v7
2019
20+ # Findings land in the job summary + the check. We don't post a PR comment: on Dependabot
21+ # PRs the GITHUB_TOKEN is read-only, so commenting would just fail there.
22+ # NOTE: requires "Dependency graph" enabled in repo Settings → Code security.
2123 - name : Dependency review
2224 uses : actions/dependency-review-action@v5
2325 with :
2426 fail-on-severity : high
25- comment-summary-in-pr : on-failure
Original file line number Diff line number Diff line change 6161 - name : Typecheck
6262 run : npm run typecheck
6363
64- # admin has no lint script, terminal has no unit tests — run each only where present.
65- - name : Lint
66- run : npm run lint --if-present
67-
6864 # Only admin has a test:run script; --if-present makes this a no-op for terminal.
6965 # The extra args make vitest also emit JUnit for the test reporter below.
7066 - name : Unit tests
Original file line number Diff line number Diff line change @@ -19,5 +19,10 @@ export default defineConfig({
1919 // CSS Modules resolve to undefined class names in tests; we assert on
2020 // text/roles, not styles, so skipping CSS keeps runs fast.
2121 css : false ,
22+ // CI runners are slower (shared ~2 vCPU); these async, MSW-backed component tests can
23+ // brush past the default 5s timeout under load. Give CI headroom and retry to absorb the
24+ // occasional resource-contention flake. Local runs keep the strict defaults.
25+ testTimeout : process . env . CI ? 20_000 : 5_000 ,
26+ retry : process . env . CI ? 2 : 0 ,
2227 } ,
2328} ) ;
You can’t perform that action at this time.
0 commit comments