feat: add perf init output (#33) #134
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: Node.js CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
node-version: 16 | |
- os: ubuntu-latest | |
node-version: 20 | |
- os: windows-latest | |
node-version: 20 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install -g [email protected] | |
- run: npm install && npm install codecov | |
- run: npm run cov | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |