Skip to content

Commit e0433db

Browse files
committed
chore: install plugins before testing examples
1 parent 9f27bd7 commit e0433db

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ jobs:
280280
- name: Install dependencies
281281
run: npm ci
282282

283+
- name: Install plugins
284+
run: npm run install-plugins
285+
283286
- name: Download dist folder
284287
uses: actions/download-artifact@v4
285288
with:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"clean": "rimraf dist coverage .nyc_output logs pacts",
1010
"predist": "npm run clean",
1111
"dist": "tsc && copyfiles package.json ./dist",
12+
"install-plugins": "./scripts/install-plugins",
1213
"lint": "eslint --config .eslintrc.json \"{src,test}/**/*.ts\"",
1314
"lint:fix": "npm run lint -- --fix",
1415
"format:base": "prettier \"{src,test,examples}/**/*.{ts,js}\"",
@@ -17,7 +18,7 @@
1718
"release": "commit-and-tag-version",
1819
"test": "mocha",
1920
"coverage": "nyc npm run test",
20-
"pretest": "./scripts/install-plugins",
21+
"pretest": "npm run install-plugins",
2122
"docker:alpine:build": "docker build --build-arg NODE_VERSION=${NODE_VERSION:-current} -f Dockerfile.alpine -t pact-js:alpine .",
2223
"docker:debian:build": "docker build --build-arg NODE_VERSION=${NODE_VERSION:-current} -f Dockerfile.debian -t pact-js:debian .",
2324
"docker:alpine:run": "docker run -e LOG_LEVEL=${LOG_LEVEL:-info} -e GIT_REF=${GIT_REF:-test} -e GITHUB_ACTIONS=${GITHUB_ACTIONS:-false} -e SKIP_EXAMPLES=${SKIP_EXAMPLES:-''} -e PACT_BROKER_BASE_URL -e PACT_BROKER_TOKEN -w /home -v $(pwd):/home --rm pact-js:alpine",

0 commit comments

Comments
 (0)