Skip to content

Ready to Develop <v0.50.02> #2141

Ready to Develop <v0.50.02>

Ready to Develop <v0.50.02> #2141

Workflow file for this run

name: MekHQ CI with Code Coverage
on:
push:
branches: [master]
env:
GRADLE_OPTS: "-Dscan.link.VCS=https://github.com/MegaMek/mekhq/commit/${{ github.sha }}"
jobs:
code_coverage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
java-distribution: [temurin]
java-version: [17]
steps:
- uses: actions/checkout@v4
with:
path: mekhq
- name: Checkout MegaMek
uses: actions/checkout@v4
with:
repository: MegaMek/megamek
path: megamek
- name: Checkout MegaMekLab
uses: actions/checkout@v4
with:
repository: MegaMek/megameklab
path: megameklab
- name: Set up ${{ matrix.java-distribution }} JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.java-distribution }}
java-version: ${{ matrix.java-version }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
working-directory: mekhq
run: ./gradlew test
- name: Upload Test Logs on Failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: cd-failure-logs
path: ./mekhq/MekHQ/build/reports/
- name: CodeCov.io Coverage Report
uses: codecov/codecov-action@v4
with:
directory: ./mekhq/MekHQ/build/reports/jacoco/test
fail_ci_if_error: false
verbose: true