Skip to content

Commit

Permalink
🐛 [Test] Fixed GitHub Actions integration with Codecov for test cover…
Browse files Browse the repository at this point in the history
…age report upload - fixup

Signed-off-by: Alberto Codutti <alberto.codutti@eurotech.com>
  • Loading branch information
Coduz committed May 3, 2024
1 parent cb9def6 commit be7bd0c
Showing 1 changed file with 38 additions and 19 deletions.
57 changes: 38 additions & 19 deletions .github/workflows/kapua-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @brokerAcl" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-tag:
needs: build
runs-on: ubuntu-latest
Expand All @@ -63,7 +64,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @tag" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-broker:
needs: build
runs-on: ubuntu-latest
Expand All @@ -83,7 +85,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @broker" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-device:
needs: build
runs-on: ubuntu-latest
Expand All @@ -103,7 +106,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @device" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-device-management:
needs: build
runs-on: ubuntu-latest
Expand All @@ -123,7 +127,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @deviceManagement" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-connection:
needs: build
runs-on: ubuntu-latest
Expand All @@ -143,7 +148,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @connection" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-datastore:
needs: build
runs-on: ubuntu-latest
Expand All @@ -163,7 +169,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @datastore" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-user:
needs: build
runs-on: ubuntu-latest
Expand All @@ -183,7 +190,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @user" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-security:
needs: build
runs-on: ubuntu-latest
Expand All @@ -203,7 +211,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @security" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-jobs:
needs: build
runs-on: ubuntu-latest
Expand All @@ -223,7 +232,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @jobs" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-triggerService:
needs: build
runs-on: ubuntu-latest
Expand All @@ -243,7 +253,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @triggerService" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-account:
needs: build
runs-on: ubuntu-latest
Expand All @@ -263,7 +274,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @account" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-jobEngineStepDefinitions:
needs: build
runs-on: ubuntu-latest
Expand All @@ -283,7 +295,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @jobEngineStepDefinitions" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-jobEngineStartOfflineDevice:
needs: build
runs-on: ubuntu-latest
Expand All @@ -303,7 +316,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @jobEngineStartOfflineDevice" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-jobEngineStartOnlineDevice:
needs: build
runs-on: ubuntu-latest
Expand All @@ -323,7 +337,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @jobEngineStartOnlineDevice" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-jobEngineRestartOfflineDevice:
needs: build
runs-on: ubuntu-latest
Expand All @@ -343,7 +358,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @jobEngineRestartOfflineDevice" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-jobEngineRestartOnlineDevice:
needs: build
runs-on: ubuntu-latest
Expand All @@ -363,7 +379,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @jobEngineRestartOnlineDevice" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-jobEngineRestartOnlineDeviceSecondPart:
needs: build
runs-on: ubuntu-latest
Expand All @@ -383,7 +400,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @jobEngineRestartOnlineDeviceSecondPart" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
test-jobEngineServiceStop:
needs: build
runs-on: ubuntu-latest
Expand All @@ -403,7 +421,8 @@ jobs:
retry_on: error
max_attempts: 3
command: ./ci-output.sh mvn -B ${BUILD_OPTS} ${CONFIG_OVERRIDES} -Dgroups='!org.eclipse.kapua.qa.markers.junit.JUnitTests' -Dcucumber.options="--tags @jobEngineServiceStop" verify
- run: bash <(curl -s https://codecov.io/bash)
- name: Code coverage results upload
uses: codecov/codecov-action@v4
junit-tests:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit be7bd0c

Please sign in to comment.