fix(ci): add build step to test shards, fix cli-alias lint
- Add `pnpm build` step to test-shards job so plugin dist/ and core packages are compiled before tests run (fixes plugin-loader test) - Add cli-alias/index.js to ESLint node scripts pattern so Node globals (process, AbortController, fetch) are recognized Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
3
.github/workflows/pr-checks.yml
vendored
3
.github/workflows/pr-checks.yml
vendored
@@ -88,5 +88,8 @@ jobs:
|
|||||||
- name: Install Bun
|
- name: Install Bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
- name: Test (deterministic shard)
|
- name: Test (deterministic shard)
|
||||||
run: pnpm test:ci:shard --shard ${{ matrix.shard }} --total 3
|
run: pnpm test:ci:shard --shard ${{ matrix.shard }} --total 3
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ export default tseslint.config(
|
|||||||
"scripts/**/*.js",
|
"scripts/**/*.js",
|
||||||
"scripts/**/*.mjs",
|
"scripts/**/*.mjs",
|
||||||
"**/*.cjs",
|
"**/*.cjs",
|
||||||
|
"packages/cli-alias/**/*.js",
|
||||||
],
|
],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
ecmaVersion: "latest",
|
ecmaVersion: "latest",
|
||||||
@@ -195,6 +196,8 @@ export default tseslint.config(
|
|||||||
__dirname: "readonly",
|
__dirname: "readonly",
|
||||||
__filename: "readonly",
|
__filename: "readonly",
|
||||||
Buffer: "readonly",
|
Buffer: "readonly",
|
||||||
|
AbortController: "readonly",
|
||||||
|
fetch: "readonly",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
|||||||
Reference in New Issue
Block a user