+ Data: Fixes for #6184, #6155, #6141,#6134,#6129,#6047,#6044,#6036,#… #57
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: Validate Name Changes List | |
on: | |
push: | |
branches: [master] | |
paths: | |
# Necessary when the name_changes.txt list is updated or any unit file. | |
- "megamek/data/mekfiles/**.blk" | |
- "megamek/data/mekfiles/**.mtf" | |
- "megamek/data/mekfiles/name_changes.txt" | |
pull_request: | |
branches: [master] | |
paths: | |
- "megamek/data/mekfiles/**.blk" | |
- "megamek/data/mekfiles/**.mtf" | |
- "megamek/data/mekfiles/name_changes.txt" | |
env: | |
GRADLE_OPTS: "-Dscan.link.VCS=${{ github.event.pull_request.html_url }}" | |
jobs: | |
name_changes_validator: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
java-distribution: [temurin] | |
java-version: [17] | |
steps: | |
- name: "Check out MegaMek" | |
uses: actions/checkout@v4 | |
with: | |
path: megamek | |
- 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 | |
with: | |
build-scan-publish: false | |
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" | |
build-scan-terms-of-use-agree: "yes" | |
- name: Validate Boards | |
working-directory: megamek | |
run: ./gradlew nameChangesValidator |