Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: codecov scan

on:
pull_request:
push:
branches:
- master
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 22.11.0
- name: Authenticate with GitHub package registry
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
- name: Install dependencies
run: npm install
- name: Run unit tests with coverage
run: npm run unit-coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
token: ${{ secrets.CODECOV_TOKEN }} # create your CODECOV_TOKEN using the token from 'set repo' in codecov site
flags: target=auto
fail_ci_if_error: true
verbose: false
Loading