Skip to content

Commit

Permalink
Upload reports to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Trotsenko committed May 18, 2024
1 parent 734a648 commit dff56eb
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build, Test and Lint

on:
push:
branches: [master]
branches: [ master ]
pull_request:
branches: [develop]
branches: [ develop ]
workflow_dispatch:

jobs:
Expand All @@ -13,12 +13,25 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 11

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Check all modules
run: ./gradlew check

- name: Generate test coverage report
run: ./gradlew koverXmlReport

- name: Upload test coverage report
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./kotpass/build/reports/kover/report.xml
fail_ci_if_error: true

0 comments on commit dff56eb

Please sign in to comment.