[Snyk] Upgrade @snyk/dep-graph from 1.31.0 to 2.8.0 #92
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: 'Check Dependencies' | |
on: | |
pull_request: | |
branches: [master] | |
jobs: | |
check-dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
- run: npm install -g npm@7 | |
- name: npm config get cache | |
id: npm-cache-dir | |
run: | | |
echo "::set-output name=dir::$(npx npm@7 config get cache)" | |
- uses: actions/cache@v2 | |
id: npm-cache | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- run: npm install | |
- run: npx ts-node ./scripts/check-dependencies.ts |