Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add codecov to the project #3168

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Changes from 5 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ec09642
add codecov to the project
vishvamsinh28 Aug 28, 2024
566c37b
wf
vishvamsinh28 Aug 28, 2024
a8814ec
wfef
vishvamsinh28 Aug 28, 2024
0a997a3
updated workflow
vishvamsinh28 Aug 28, 2024
cef181b
Merge branch 'master' into addCodecov
vishvamsinh28 Aug 30, 2024
6d4d293
add explicit commit id
vishvamsinh28 Aug 30, 2024
fd92de6
Merge branch 'addCodecov' of https://github.com/vishvamsinh28/website…
vishvamsinh28 Aug 30, 2024
7e2c409
Merge branch 'master' into addCodecov
vishvamsinh28 Aug 31, 2024
2791cfd
update workflow
vishvamsinh28 Aug 31, 2024
6a1f40f
update id
vishvamsinh28 Aug 31, 2024
451acf3
Merge branch 'master' into addCodecov
vishvamsinh28 Sep 5, 2024
347d752
remove flag
vishvamsinh28 Sep 7, 2024
859e9dc
Merge branch 'master' into addCodecov
vishvamsinh28 Sep 7, 2024
4ce435f
Merge branch 'addCodecov' of https://github.com/vishvamsinh28/website…
vishvamsinh28 Sep 7, 2024
f29052d
Merge branch 'master' into addCodecov
vishvamsinh28 Sep 11, 2024
af14485
Merge branch 'master' into addCodecov
anshgoyalevil Sep 13, 2024
354871b
updated test
vishvamsinh28 Sep 13, 2024
ca47e34
Merge branch 'master' into addCodecov
asyncapi-bot Sep 13, 2024
75d4483
Merge branch 'master' into addCodecov
asyncapi-bot Sep 13, 2024
9cc0dc1
remove flag
anshgoyalevil Sep 13, 2024
af99e29
fef
vishvamsinh28 Sep 13, 2024
e20d236
Merge branch 'master' into addCodecov
vishvamsinh28 Sep 14, 2024
fd57791
Update jest.config.js
vishvamsinh28 Sep 14, 2024
829c653
jest config update
vishvamsinh28 Sep 14, 2024
0bde97f
Merge branch 'master' into addCodecov
vishvamsinh28 Sep 16, 2024
d3541cb
fewf
vishvamsinh28 Sep 16, 2024
efe6ab9
Merge branch 'addCodecov' of https://github.com/vishvamsinh28/website…
vishvamsinh28 Sep 16, 2024
16f4651
Merge branch 'master' into addCodecov
asyncapi-bot Sep 18, 2024
37bea64
Merge branch 'master' into addCodecov
anshgoyalevil Sep 20, 2024
4a15cee
upated config for jest
vishvamsinh28 Sep 20, 2024
1643499
Merge branch 'addCodecov' of https://github.com/vishvamsinh28/website…
vishvamsinh28 Sep 20, 2024
8f79d8a
Merge branch 'master' into addCodecov
vishvamsinh28 Sep 23, 2024
3fe50cd
Merge branch 'master' into addCodecov
vishvamsinh28 Sep 28, 2024
6dab16d
Merge branch 'master' into addCodecov
vishvamsinh28 Sep 30, 2024
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
21 changes: 19 additions & 2 deletions .github/workflows/if-nodejs-pr-testing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# It does magic only if there is package.json file in the root of the project
name: PR testing - if Node project

on:
Expand Down Expand Up @@ -60,7 +59,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "${{ steps.nodeversion.outputs.version }}"
- name: Install dependencies
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
run: npm ci
anshgoyalevil marked this conversation as resolved.
Show resolved Hide resolved
- if: steps.packagejson.outputs.exists == 'true'
name: Test
Expand All @@ -72,3 +72,20 @@ jobs:
name: Run release assets generation to make sure PR does not break it
shell: bash
run: npm run generate:assets --if-present

upload-coverage:
name: Upload Coverage to Codecov
runs-on: ubuntu-latest
needs: test-nodejs-pr
steps:
anshgoyalevil marked this conversation as resolved.
Show resolved Hide resolved
- name: Checkout repository
uses: actions/checkout@v4
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
anshgoyalevil marked this conversation as resolved.
Show resolved Hide resolved
fail_ci_if_error: true
files: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella
anshgoyalevil marked this conversation as resolved.
Show resolved Hide resolved
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
anshgoyalevil marked this conversation as resolved.
Show resolved Hide resolved
Loading