Skip to content

Commit 1eed1b6

Browse files
authored
chore: remove codecov deprecated dep and use in action (#1943)
* chore: remove codecov deprecated dep and use in action * fix: workflow * fix: upload codecov only on nodejs 20 * fix: remove useless env vars * fix: use codecov v5 * fix: try tokenless * fix: disable codecov step * chore: enable back codecov * chore: trigger again * chore: trigger again
1 parent 938d41e commit 1eed1b6

File tree

4 files changed

+12
-306
lines changed

4 files changed

+12
-306
lines changed

.github/workflows/mqttjs-test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,16 @@ jobs:
4242
timeout-minutes: 5
4343
env:
4444
CI: true
45-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4645
DEBUG: "${{ runner.debug == '1' && 'mqttjs:*' || '' }}"
4746

48-
49-
47+
# upload coverage to Codecov
48+
- name: Upload coverage to Codecov
49+
uses: codecov/codecov-action@v5
50+
with:
51+
directory: ./coverage/
52+
fail_ci_if_error: false
53+
flags: unittests
54+
name: codecov-mqttjs
55+
token: ${{ secrets.CODECOV_TOKEN }}
56+
verbose: true
5057

nyc.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ module.exports = {
1717
functions: 89,
1818
lines: 86,
1919
statements: 86,
20-
'check-coverage': true,
20+
'check-coverage': true
2121
}

0 commit comments

Comments
 (0)