Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

chore(deps): update dependency lint-staged to v15.2.0 #1625

chore(deps): update dependency lint-staged to v15.2.0

chore(deps): update dependency lint-staged to v15.2.0 #1625

Workflow file for this run

name: "Main Workflow"
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
name: "[Build] Node.js ${{ matrix.node }} and ${{ matrix.os }}"
strategy:
matrix:
node: ["16", "18"]
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "npm"
- run: npm i -g npm@7
- name: Install with npm
run: npm i
- name: Build
run: npm run build
test:
runs-on: ubuntu-latest
name: "[Test] Node.js 16 and ubuntu-latest"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js 16
uses: actions/setup-node@v4
with:
node-version: 16
cache: "npm"
- name: Install with npm
run: npm install
- name: Run tests
run: npm run test
- name: Generate coverage report
run: npm run coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}