Skip to content

[Snyk] Upgrade mysql2 from 3.6.0 to 3.9.3 #26

[Snyk] Upgrade mysql2 from 3.6.0 to 3.9.3

[Snyk] Upgrade mysql2 from 3.6.0 to 3.9.3 #26

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code, run tests, and deploy to Azure Web Apps
# For more information, see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI and Deployment
on:
push:
branches:
- "feature/*"
pull_request:
branches:
- "develop"
- "main"
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: Install NPM
run: npm install
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run Tests
run: npm test
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: node-app
path: |
dist/
src/
test/
mocharc.json
package-lock.json
package.json
tsconfig.json
.gitignore
static_code_analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Snyk CLI
run: npm install -g snyk
- name: Authenticate with Snyk
run: snyk auth ${{ secrets.SNYK_TOKEN }}
- name: Run Snyk Scan
run: snyk test --all-projects --severity-threshold=high
#comment 12