Update junit5 monorepo {patch} (patch) #704
Workflow file for this run
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
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: JavaCI-PR | |
on: | |
push: | |
branches: [ main] | |
paths: | |
- 'gradle/libs.versions.toml' | |
- 'gradle/verification-metadata.xml' | |
- 'gradle/wrapper/gradle-wrapper.properties' | |
- 'config/ossindex/exclusions.txt' | |
- '.github/workflows/gradle-ci.yml' | |
- 'mission-report/flight-evaluation-report/node/package.json' | |
- 'mission-report/flight-evaluation-report/node/package-lock.json' | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- 'README.md' | |
- '**/README.md' | |
- 'CODE_OF_CONDUCT.md' | |
- 'CONTRIBUTING.md' | |
- 'pull_request_template.md' | |
- '.lift/.toml' | |
- '**/.lift/.toml' | |
- 'SECURITY.md' | |
- 'LICENSE' | |
- '.github/ISSUE_TEMPLATE/**' | |
- '.github/assets/**' | |
- '.github/workflows/**' | |
- '!.github/workflows/gradle-ci.yml' | |
- '.github/pr-labeler.yml' | |
- 'renovate.json' | |
- '.whitesource' | |
- 'gradle/libs.versions.toml' | |
- 'config/ossindex/exclusions.txt' | |
permissions: read-all | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Set up build environment | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: 'Decode key (if Ubuntu)' | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
mkdir -p ${{ runner.temp }}/.gnupg/ | |
echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode > ${{ runner.temp }}/.gnupg/secring.gpg | |
- name: 'Build with Gradle (if Ubuntu)' | |
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
arguments: | | |
printVersion build sign | |
-Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} | |
-Psigning.password=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} | |
-Psigning.secretKeyRingFile=${{ runner.temp }}/.gnupg/secring.gpg | |
- name: 'Build with Gradle (if Windows)' | |
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0 | |
if: ${{ matrix.os != 'ubuntu-latest' }} | |
with: | |
arguments: printVersion build | |
- name: 'Clean-up GPG key (if Ubuntu)' | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
rm -rf ${{ runner.temp }}/.gnupg/ | |
- name: 'Upload Test reports - All' | |
if: always() | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | |
with: | |
name: test-report-abort-mission-${{ matrix.os }} | |
path: | | |
mission-control/build/reports/tests/test | |
boosters/**/build/reports/tests/test | |
mission-report/**/build/reports/tests/test | |
retention-days: 5 | |
- name: Upload coverage to Codecov - Core | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./mission-control/build/reports/jacoco/report.xml | |
flags: core | |
- name: Upload coverage to Codecov - Boosters - JUnit4 | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./boosters/booster-junit4/build/reports/jacoco/report.xml | |
flags: junit4 | |
- name: Upload coverage to Codecov - Boosters - Jupiter | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./boosters/booster-junit-jupiter/build/reports/jacoco/report.xml | |
flags: jupiter | |
- name: Upload coverage to Codecov - Boosters - TestNG | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./boosters/booster-testng/build/reports/jacoco/report.xml | |
flags: testng | |
- name: Upload coverage to Codecov - Boosters - Cucumber JVM | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./boosters/booster-cucumber-jvm/build/reports/jacoco/report.xml | |
flags: cucumber | |
- name: Upload coverage to Codecov - Boosters - Testkit | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./boosters/testkit/build/reports/jacoco/report.xml | |
flags: testkit | |
- name: Upload coverage to Codecov - Reporting - Flight Evaluation Report | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./mission-report/flight-evaluation-report/build/reports/jacoco/report.xml,./mission-report/flight-evaluation-report/node/build/coverage/cobertura-coverage.xml | |
flags: flighteval |