Skip to content

Commit 9ffbd43

Browse files
committed
Fix Mac builds and Windows tests.
1 parent b839309 commit 9ffbd43

3 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/matrix.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
node-version: ${{ matrix.node-version }}
1818
- name: Install and Cache Dependencies
1919
uses: ./.github/actions/cached-deps
20+
- name: Clean and Reinstall (macOS only)
21+
if: runner.os == 'macOS'
22+
run: |
23+
rm -rf node_modules
24+
rm -f package-lock.json
25+
npm install
2026
- name: Build
2127
run: npm run build
2228
test:
@@ -35,5 +41,11 @@ jobs:
3541
node-version: ${{ matrix.node-version }}
3642
- name: Install and Cache Dependencies
3743
uses: ./.github/actions/cached-deps
44+
- name: Clean and Reinstall (macOS only)
45+
if: runner.os == 'macOS'
46+
run: |
47+
rm -rf node_modules
48+
rm -f package-lock.json
49+
npm install
3850
- name: Test
3951
run: npm run test

package-lock.json

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"start": "stupid-server -s -p 8443",
4747
"start:sample": "npm run build-run-local",
4848
"test": "npm run lint && npm run test:unit",
49-
"test:unit": "NODE_ENV=test jest --runInBand",
49+
"test:unit": "cross-env NODE_ENV=test jest --runInBand",
5050
"test:watch": "jest --watch --collectCoverage=false --runInBand",
5151
"lint": "eslint -c .eslintrc.json --ext .ts src",
5252
"lint:fix": "npm run lint -- --fix",
@@ -98,6 +98,7 @@
9898
"broadcast-channel": "^7.0.0",
9999
"codecov": "^3.8.2",
100100
"concurrently": "^8.2.2",
101+
"cross-env": "^7.0.3",
101102
"crypto": "^1.0.1",
102103
"eslint": "^8.56.0",
103104
"eslint-plugin-import": "^2.29.1",

0 commit comments

Comments
 (0)