diff --git a/.github/workflows/mocha.yml b/.github/workflows/mocha.yml index 03fe0a0dd8..847d0032b6 100644 --- a/.github/workflows/mocha.yml +++ b/.github/workflows/mocha.yml @@ -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 @@ -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 }}]' diff --git a/.github/workflows/npm-script.yml b/.github/workflows/npm-script.yml index 495bcd427c..dc78823f21 100644 --- a/.github/workflows/npm-script.yml +++ b/.github/workflows/npm-script.yml @@ -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 }} diff --git a/package.json b/package.json index 887c775a5e..8904232dbc 100644 --- a/package.json +++ b/package.json @@ -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": {