diff --git a/.github/workflows/validate-namechanges.yml b/.github/workflows/validate-namechanges.yml index 6017f09e8e7..d6c0b56aefc 100644 --- a/.github/workflows/validate-namechanges.yml +++ b/.github/workflows/validate-namechanges.yml @@ -17,36 +17,24 @@ on: - 'megamek/data/mechfiles/name_changes.txt' jobs: - board_validator: - runs-on: ${{ matrix.os }} - - # Run this job once for each combination in the matrix below. - strategy: - matrix: - os: [ ubuntu-latest ] # For Board Validation running on *nix is sufficient - java-distribution: [ temurin ] - java-version: [ 17 ] + name_changes_validator: + runs-on: ubuntu-latest + java-distribution: temurin + java-version: 17 steps: - uses: actions/checkout@v3 - - # Setup the requested Java Distribution and Version from the matrix - - name: Set up ${{ matrix.java-distribution }} JDK ${{ matrix.java-version }} - uses: actions/setup-java@v3 + - uses: actions/setup-java@v3 with: - distribution: ${{ matrix.java-distribution }} - java-version: ${{ matrix.java-version }} + distribution: 'temurin' + java-version: '17' - # Make sure we can execute the Gradle wrapper - name: Grant execute permission for gradlew (*nix or MacOS) run: chmod +x gradlew - if: runner.os != 'Windows' - # Build the MegaMek project - - name: Create MM Jar + - name: Build MM Jar run: ./gradlew jar --stacktrace - # Run the Boards Validator - name: Validate Name Changes working-directory: megamek run: java -cp build/libs/MegaMek.jar megamek.utilities.NameChangesValidator