Skip to content

version 1.0.0

version 1.0.0 #20

Workflow file for this run

name: Running Code Coverage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
strategy:
matrix:
node-version: [20.x, 21.x, 22.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Fine-grained PAT with contents:write and workflows:write
# scopes
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}