This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
chore(deps): lock file maintenance #1628
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: "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 }} |