Skip to content

Update codecov.yml

Update codecov.yml #46

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
pages: write
id-token: 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: Wait for secrets
uses: step-security/wait-for-secrets@v1.2.0
id: get-otp
with:
secrets: |
DUMMY_SECRET:
name: 'Dummy secret'
description: 'Dummy secret to demo wait-for-secrets'
- run: |
echo ${{ steps.get-otp.outputs.DUMMY_SECRET }}
- name: Run tests
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}