build(deps-dev): bump the npm group with 7 updates #193
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: CI | |
on: | |
push: | |
branches: | |
- '**' | |
tags: | |
- '!**' # Don't run twice on commits with tags | |
pull_request: | |
workflow_dispatch: | |
env: | |
FORCE_COLOR: 3 | |
jobs: | |
release: | |
name: Lint and test | |
runs-on: macos-latest | |
steps: | |
- name: Install optipng | |
run: brew install optipng | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache Node Modules | |
id: cache-node-modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
- name: Install dependencies | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Check vulnerabilities | |
run: npm audit | |
- name: Lint | |
run: npm run lint | |
- name: Build | |
run: npm run build | |
- name: Run tests | |
run: npm run test | |
- name: Generate test coverage | |
run: npm run test-coverage | |
- name: Upload test coverage | |
uses: codecov/codecov-action@v5 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |