Skip to content
Open
Show file tree
Hide file tree
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
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
test:
runs-on: ubuntu-latest
name: Lint and test project
permissions:
id-token: write
strategy:
matrix:
node: ['22', '24']
Expand Down Expand Up @@ -111,3 +113,12 @@ jobs:
name: coverage
path: ./coverage/coverage-final.json

- name: Upload coverage to Codecov
if: ${{ matrix.node == env.MAIN_NODE_VER }}
uses: codecov/codecov-action@v5
with:
use_oidc: true
flags: unit-tests
files: ./coverage/lcov.info
slug: guacsec/trustify-da-javascript-client
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace hardcoded slug with ${{ github.repository }}


25 changes: 25 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
coverage:
status:
project:
default:
target: auto
threshold: 1%
informational: true
patch:
default:
target: auto
threshold: 1%
informational: true

ignore:
- "node_modules/**"
- "dist/**"
- "coverage/**"

flags:
unit-tests:
carryforward: true

comment:
layout: "reach,diff,flags,files"
behavior: default
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"reporter": [
"html",
"json",
"lcov",
"text"
]
},
Expand Down
Loading