Merge pull request #353 from center-for-threat-informed-defense/develop #549
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: run static checks | |
on: | |
push: | |
branches: [master, develop] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: static-checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- run: npm install | |
- run: npm run lint | |
- run: npm run snyk | |
- run: npm run coverage:cobertura | |
- name: Upload Coverage to CodeCov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_SECRET }} | |
files: coverage/cobertura-coverage.xml | |
verbose: true | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} |