fix: package.json & package-lock.json to reduce vulnerabilities #221
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: generator-quality-check | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
# Uncomment and replace with current `os` when windows-run bug is fixed | |
# os: [ubuntu-latest, windows-latest] | |
os: [ubuntu-latest] | |
env: | |
OS: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
cache: "npm" | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- name: Test | |
run: npm t -- --collectCoverage generator | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: ./test-reports/coverage | |
env_vars: OS | |
fail_ci_if_error: false | |
flags: generator | |
name: codecov-umbrella | |
verbose: true |