Skip to content

Commit e67c08c

Browse files
committed
fix: make unit test dependency setup deterministic
1 parent cd52b80 commit e67c08c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/UnitTests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ jobs:
5454
restore-keys: |
5555
${{ runner.os }}-pnpm-store-
5656
- name: "Installing dependencies"
57-
run: pnpm install
57+
# Avoid running workspace lifecycle builds during install; the internal utilities are built once below.
58+
run: pnpm install --frozen-lockfile --ignore-scripts
59+
- name: "Building internal utilities"
60+
run: pnpm run build:internal-utils
5861
- name: "Linting code"
5962
run: pnpm -r --filter=${{ steps.variables.outputs.arg }} run lint
6063
- name: "Running unit tests"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"test:e2e:android": "pnpm -r run test:e2e:android",
2323
"test:e2e:ios": "pnpm -r run test:e2e:ios",
2424
"build": "pnpm -r run build",
25+
"build:internal-utils": "pnpm --filter @mendix/piw-utils-internal --filter @mendix/piw-native-utils-internal run build",
2526
"release": "pnpm -r run release",
2627
"release:marketplace": "pnpm -r run release:marketplace",
2728
"release-github:widget": "node ./scripts/release/createWidgetRelease.js",

0 commit comments

Comments
 (0)