Skip to content

Commit

Permalink
Pass arguments to npm script correctly
Browse files Browse the repository at this point in the history
Using npm requires passing `--` before the extra arguments.
  • Loading branch information
bjoernricks committed Aug 7, 2023
1 parent e379b11 commit 2d1d979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2d1d979

Please sign in to comment.