Skip to content

Commit

Permalink
updating package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-matt committed Dec 31, 2021
2 parents aca63b4 + fbd09c5 commit 4844c21
Showing 1 changed file with 12 additions and 28 deletions.
40 changes: 12 additions & 28 deletions .github/workflows/githubactions.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

name: Snyk example
on: push
jobs:
build:

security:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# 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 ci
- run: npm run build --if-present
- run: npm test
- uses: actions/checkout@main
- uses: snyk/actions/setup@master
- uses: actions/setup-node@v2.4.0
with:
node-version: 12.x
- name: Snyk SAST
run: snyk code test
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 comments on commit 4844c21

Please sign in to comment.