[SASD-511] fix: json output to console #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Tests | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
security: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: snyk/actions/setup@master | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2 | |
- name: Install dependencies | |
run: | | |
npm install | |
- name: Run Snyk to check for vulnerabilities | |
uses: snyk/actions/node@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
with: | |
args: --severity-threshold=critical | |
npmtest: | |
runs-on: ubuntu-latest | |
needs: security | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2 | |
- name: Install dependencies | |
run: | | |
npm install semantic-release @semantic-release/exec pkg --save-dev | |
npm install | |
- name: Test | |
run: npm test |