Merge pull request #1771 from travi-org/renovate/npm-snyk-vulnerability #9213
This file contains hidden or 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: Node.js CI | |
| 'on': | |
| push: | |
| branches: | |
| - master | |
| - 'renovate/**' | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| env: | |
| FORCE_COLOR: 1 | |
| NPM_CONFIG_COLOR: always | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Read .nvmrc | |
| run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)' | |
| id: nvm | |
| - name: Setup node | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '${{ steps.nvm.outputs.NVMRC }}' | |
| - uses: bahmutov/npm-install@v1 | |
| - run: npm test |