From 6af0656216182899edef9323dc28e75ffe99f688 Mon Sep 17 00:00:00 2001 From: Speiger Date: Thu, 15 Jun 2023 18:53:08 +0200 Subject: [PATCH] Adding coverage to master to make things simpler! --- .github/workflows/coverage.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..b91e20a --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,27 @@ +name: Measure coverage + +on: + push: + branches: [ debug ] +jobs: + build: + name: Code Quality Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 11 + cache: 'gradle' + - name: Make gradlew executable + run: chmod +x ./gradlew + - name: Build and analyze + run: ./gradlew generateTestSource test jacocoTestReport --info -Dfull_test_suite=true + - name: Upload to CodeCov + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + run: bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN