ci: confirm vulnerability checking functionality #142
Workflow file for this run
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: Node.js CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [16, 18, lts/*] | |
name: Node ${{ matrix.node }} build | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint the app | |
run: npm run lint | |
- name: Check for vulnerabilities | |
run: npm audit --omit=dev | |
- name: Test development build with coverage | |
run: npm run test:coverage | |
- name: Build production artifact | |
run: npm run build |