Fix Commit - Committing fix whereby NPM Audit Actions Fails when running on Windows OS (#122)

- This commit is to fix an issue when running the 'npm-audit-action' on the 'windows-latest'
- Integrated the 'spawnSync' to use the right 'npm' script based upon the OS used
This commit is contained in:
Shaid Khan
2022-05-11 23:45:03 +01:00
committed by GitHub
parent c0410c237f
commit 33a41db91d
4 changed files with 1319 additions and 1302 deletions

View File

@@ -7,7 +7,10 @@ on:
jobs:
scan:
name: npm audit
runs-on: ubuntu-latest
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: install dependencies

View File

@@ -8,7 +8,10 @@ on: # rebuild any PRs and main branch changes
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: |
@@ -17,8 +20,12 @@ jobs:
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Dump GitHub context
env: