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
15 changes: 15 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,18 @@ jobs:
- run: npm run format:check
- run: npm test
- run: npm run coverage:check
# Uploaded from one matrix leg only — the report is identical across them, and
# two legs writing the same artifact name is an error. Makes a coverage
# regression inspectable from the failing run instead of only reproducible locally.
- name: Upload coverage report
if: matrix.node-version == '22.x'
uses: actions/upload-artifact@v7
with:
name: coverage-report
# Only the readable report. `coverage/` also holds c8's raw V8 dump in
# tmp/, which is ~97% of the bytes and inspectable by nothing — 23 MB of
# tmp against a 647 kB report in the worst case here.
path: |
coverage/lcov-report
coverage/lcov.info
retention-days: 14
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"coverage:check": "c8 --check-coverage npm test"
},
"c8": {
"reporter": [
"text",
"lcov"
],
"include": [
"telegrambot/**/*.js"
],
Expand Down