Skip to content

Add GitHub Actions workflow with Codecov OIDC #1

Add GitHub Actions workflow with Codecov OIDC

Add GitHub Actions workflow with Codecov OIDC #1

name: Run Tests on Release
on: push
permissions:
contents: read
id-token: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Run Jest tests (with coverage)
run: npm run test:coverage:src
- name: Upload coverage to Codecov (OIDC)
uses: codecov/codecov-action@v5
with:
use_oidc: true
files: ./coverage/lcov.info
fail_ci_if_error: true
flags: unittests