From 79ec03f3e5d53cce05365f363426bffaa2d46b5c Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Wed, 29 Jun 2022 18:03:50 +0100 Subject: [PATCH] Run npm scripts on using bash so Windows can find commands --- .github/workflows/pr-checks.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 0edf05474..09e9368b7 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -96,8 +96,12 @@ jobs: steps: - uses: actions/checkout@v3 - - name: npm run-script test - run: npm run-script test + - name: npm test + run: | + # Run any commands referenced in package.json using Bash, otherwise + # we won't be able to find them on Windows. + npm config set script-shell bash + npm test runner-analyze-javascript-ubuntu: name: Runner ubuntu JS analyze