Skip to content

Commit 48882cf

Browse files
CCM-15867 Consolidating shared scripts
1 parent 1d83114 commit 48882cf

4 files changed

Lines changed: 163 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ dist
3636

3737
# ignore PACTS
3838
.pacts
39+
pact-contracts/pacts/
3940

4041
# python venvs
4142
.venv/

package-lock.json

Lines changed: 157 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@aws-sdk/lib-dynamodb": "^3.1008.0",
1010
"@nhsdigital/nhs-notify-event-schemas-letter-rendering": "^2.0.1",
1111
"@pact-foundation/pact": "^16.0.4",
12-
"@pact-foundation/pact-core": "^17.0.2",
12+
"@pact-foundation/pact-core": "^17.1.0",
1313
"@playwright/test": "^1.57.0",
1414
"allure-js-commons": "^3.3.3",
1515
"dotenv": "^17.2.2",

tests/pact-tests/run-pact-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ set -euo pipefail
55
# Ensure we have the latest package matching the major version
66
npm install --no-lockfile @nhsdigital/nhs-notify-event-schemas-letter-rendering@^2
77

8+
# Reinstall pact to ensure platform-specific native dependencies are present
9+
# CI may run on a different architectures to local dev
10+
npm install --no-lockfile --include=optional @pact-foundation/pact @pact-foundation/pact-core
11+
812
# Remove old PACTs
913
rm -rf ./.pacts
1014

0 commit comments

Comments
 (0)