From 2d1d9794ff0f299b85ab45ab960bad4a16add396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Mon, 7 Aug 2023 14:37:43 +0200 Subject: [PATCH] Pass arguments to npm script correctly Using npm requires passing `--` before the extra arguments. --- .github/workflows/ci-js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-js.yml b/.github/workflows/ci-js.yml index 9768970b9d..9fb30b39c9 100644 --- a/.github/workflows/ci-js.yml +++ b/.github/workflows/ci-js.yml @@ -31,7 +31,7 @@ jobs: - name: Run JavaScript tests env: JEST_JUNIT_OUTPUT_DIR: ${{ env.REPORT_DIR }} - run: npm run test:coverage --reporters=default --reporters=jest-junit + run: npm run test:coverage -- --reporters=default --reporters=jest-junit - name: Load Lint Results uses: actions/download-artifact@v3 with: @@ -62,7 +62,7 @@ jobs: - name: Install dependencies run: npm install - name: Lint JavaScript files - run: npm run lint --format junit -o ${{ env.REPORT_FILE }} + run: npm run lint -- --format junit -o ${{ env.REPORT_FILE }} - name: Store Lint Results uses: actions/upload-artifact@v3 with: