Skip to content

Report Code Coverage #35

Report Code Coverage

Report Code Coverage #35

Workflow file for this run

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" -i
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}