Report Code Coverage #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Report Code Coverage | |
on: | |
workflow_run: | |
workflows: [ "Unit Tests" ] | |
branches: [ "main" ] | |
types: | |
- completed | |
jobs: | |
codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Run tests | |
run: | | |
./gradlew test -DexcludeTags="integration" | |
- name: Test Coverage | |
run: | | |
./gradlew \ | |
:redpulsar-core:koverXmlReport \ | |
:redpulsar-jedis:koverXmlReport \ | |
:redpulsar-lettuce:koverXmlReport \ | |
-DexcludeTags="integration" | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |