Skip to content

adding new feature

adding new feature #57

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm i -g snyk
- run: npm i -g snyk-to-html
- run: snyk auth ${{ secrets.SNYK_TOKEN }}
- name: run test
run: |
snyk test --json | snyk-to-html -o build/result.html
- name: Use the Upload Artifact GitHub Action
uses: actions/upload-artifact@v2
with:
name: results
path: build/results.html