fix: package.json & package-lock.json to reduce vulnerabilities #559
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: app-quality-check | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: [main] | |
defaults: | |
run: | |
working-directory: ./src/code-templates | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x] | |
# Uncomment and replace this 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 }} | |
- name: Install root dependencies | |
run: npm i | |
- name: Test all packages | |
run: npx turbo run test | |
- name: Lint all packages | |
run: npm run lint | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: ./src/code-templates/services/order-service/test-reports/coverage | |
env_vars: OS | |
fail_ci_if_error: false | |
flags: app | |
name: codecov-umbrella | |
verbose: true |