Skip to content

Commit bcb77b3

Browse files
authored
ci: add mrt-utilities to CI workflow (#369)
MRT utilities was missing from CI — lint, typecheck, and test errors were not caught. Add it to both Linux and Windows CI jobs, fix an existing lint error (unused catch variable), and add the test:ci script.
1 parent bad9034 commit bcb77b3

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,15 @@ jobs:
7676
working-directory: packages/b2c-cli
7777
run: pnpm run pretest && pnpm run test:ci && pnpm run lint
7878

79+
- name: Run MRT Utilities tests
80+
id: mrt-test
81+
if: always() && steps.cli-test.conclusion != 'cancelled'
82+
working-directory: packages/mrt-utilities
83+
run: pnpm run pretest && pnpm run test:ci && pnpm run lint
84+
7985
- name: Run VS Extension checks
8086
id: vs-extension-test
81-
if: always() && steps.cli-test.conclusion != 'cancelled'
87+
if: always() && steps.mrt-test.conclusion != 'cancelled'
8288
working-directory: packages/b2c-vs-extension
8389
run: pnpm run typecheck:agent && pnpm run lint
8490

@@ -167,8 +173,13 @@ jobs:
167173
# the Linux-calibrated 70% threshold even though the tests pass.
168174
# Coverage is still generated and uploaded for inspection.
169175
run: pnpm run pretest && pnpm run test:ci:win && pnpm run lint
170-
- name: Run VS Extension checks
176+
- name: Run MRT Utilities tests
177+
id: mrt-test
171178
if: always() && steps.cli-test.conclusion != 'cancelled'
179+
working-directory: packages/mrt-utilities
180+
run: pnpm run pretest && pnpm run test:ci && pnpm run lint
181+
- name: Run VS Extension checks
182+
if: always() && steps.mrt-test.conclusion != 'cancelled'
172183
working-directory: packages/b2c-vs-extension
173184
run: pnpm run typecheck:agent && pnpm run lint
174185
- name: Print Windows test failures

packages/mrt-utilities/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
"format:check": "prettier --check .",
101101
"pretest": "tsc --noEmit -p test",
102102
"test": "c8 mocha --forbid-only \"test/**/*.test.ts\"",
103+
"test:ci": "c8 mocha --forbid-only --reporter json --reporter-option output=test-results.json \"test/**/*.test.ts\"",
103104
"test:agent": "mocha --forbid-only --reporter min \"test/**/*.test.ts\"",
104105
"test:watch": "mocha --watch \"test/**/*.test.ts\""
105106
},

0 commit comments

Comments
 (0)