Skip to content

Commit

Permalink
Merge pull request #173 from NipunaMadhushan/main
Browse files Browse the repository at this point in the history
Fix uploading codecov report
  • Loading branch information
NipunaMadhushan authored May 14, 2024
2 parents eb941e2 + c86d5ba commit 33e0b56
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ jobs:
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ballerina-tests/jaeger-server-tests/target/report/jaeger_server_tests/coverage-report.xml
- name: Notify failure
if: ${{ failure() }}
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ jobs:
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ballerina-tests/jaeger-server-tests/target/report/jaeger_server_tests/coverage-report.xml

6 changes: 3 additions & 3 deletions ballerina-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def disableGroups = ""
def windowsDisableGroups = "--disable-groups disabledOnWindows"
def debugParams = ""
def balJavaDebugParam = ""
def testParams = ""
def testParams = "--code-coverage --coverage-format=xml"
def nativeFlag = ""

def packageOrg = "ballerinax"
Expand Down Expand Up @@ -195,9 +195,9 @@ task ballerinaTest {

doLast {
testPackages.each { testPackage ->
def env = "JAVA_OPTS -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true ${testParams} ${groupParams}" +
def env = "JAVA_OPTS -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true ${groupParams}" +
" ${disableGroups} ${windowsDisableGroups} ${debugParams}"
executeBalCommand("test", "${project.projectDir}/${testPackage}", env)
executeBalCommand("test ${testParams}", "${project.projectDir}/${testPackage}", env)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fixes:
- "ballerinax/jaeger/*/::jaeger-extension-ballerina/"
- "ballerinax/jaeger/*/::ballerina/"

ignore:
- "**/test"

0 comments on commit 33e0b56

Please sign in to comment.