Skip to content

Commit 8baba24

Browse files
test: Fix on macOS + add macOS to CI (#177)
1 parent 3f54747 commit 8baba24

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/scip-snapshot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ on:
1010

1111
jobs:
1212
build:
13-
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macos-latest]
16+
runs-on: ${{ matrix.os }}
1417
steps:
1518
- uses: actions/checkout@v3
1619
- name: Install asdf.

packages/pyright-internal/src/analyzer/program.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ export class Program {
293293
}
294294

295295
// Add the new files. Only the new items will be added.
296-
this.addTrackedFiles(filePaths);
296+
// Normalize paths to ensure consistency with other code paths.
297+
const normalizedFilePaths = filePaths.map(path => normalizePathCase(this._fs, path));
298+
this.addTrackedFiles(normalizedFilePaths);
297299

298300
return this._removeUnneededFiles();
299301
}

packages/pyright-scip/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"build": "webpack --mode production --progress",
8+
"build-agent": "webpack --mode development",
89
"clean": "shx rm -rf ./dist ./out README.md LICENSE.txt",
910
"prepack": "npm run clean && shx cp ../../README.md . && shx cp ../../LICENSE.txt . && npm run build",
1011
"check-snapshots": "npm run update-snapshots -- --check",

0 commit comments

Comments
 (0)