Improve automatisms (#90) #4
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: Code coverage CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
coverage: | |
name: Build project and upload coverage | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code changes | |
uses: actions/checkout@v4 | |
- name: Set up JDK 19 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 19 | |
distribution: temurin | |
cache: gradle | |
- name: Build project with Gradle | |
run: chmod +x gradlew && ./gradlew build --no-daemon | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./build/reports/jacoco/test/ | |
fail_ci_if_error: true | |
flags: unit_tests | |
name: codecov-umbrella | |
verbose: true |