added javadoc for properties to be used to understand the settings. A… #11
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: Gradle Build and Test Cover Agent Plugin | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build and Test Cover Agent Plugin | |
working-directory: cover-agent-plugin | |
run: ../gradlew clean build --stacktrace --info | |
- name: Run Check for Cover Agent Plugin | |
working-directory: cover-agent-plugin | |
run: ../gradlew check | |
- name: Generate Jacoco Coverage Report | |
working-directory: cover-agent-plugin | |
run: ../gradlew jacocoTestReport | |
- name: Upload Test Results | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-results | |
path: cover-agent-plugin/build/reports | |
- name: Upload Code Coverage Report | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: code-coverage-report | |
path: build | |