Skip to content

Commit

Permalink
ci: ensure they all scripts can use npm run
Browse files Browse the repository at this point in the history
See also #5128
  • Loading branch information
voxpelli committed Jul 15, 2024
1 parent 3544feb commit 00e7681
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mocha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: ./.github/workflows/npm-script.yml
with:
browsers: ChromeHeadless
npm-script: test.browser
npm-script: test:browser

test-browser-saucelabs:
# Don't run forked 'pull_request' without saucelabs token
Expand All @@ -41,7 +41,7 @@ jobs:
secrets: inherit
with:
browsers: 'firefox@latest,chrome@latest,MicrosoftEdge@latest,safari@latest'
npm-script: test.browser
npm-script: test:browser

test-node:
name: 'Node.js [v${{ matrix.node }} / ${{ matrix.os }}]'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
node-version: ${{ matrix.node_version }}
cache: 'npm'
- run: npm ci --ignore-scripts
- run: npm start ${{ inputs.npm-script }}
- run: npm run ${{ inputs.npm-script }}
env:
BROWSER: ${{ matrix.browser }}
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"start": "nps",
"test": "nps test",
"version": "nps version",
"test:browser": "nps test.browser",
"test:smoke": "node ./bin/mocha --no-config test/smoke/smoke.spec.js"
},
"dependencies": {
Expand Down

0 comments on commit 00e7681

Please sign in to comment.