Skip to content

Commit

Permalink
Action fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rjhancock committed Jul 18, 2024
1 parent 902b790 commit 54f9c3a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/validate-boards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
- "megamek/src/megamek/common/Building.java"
- "megamek/src/megamek/common/Terrains.java"
- "megamek/src/megamek/utilities/BoardsValidator.java"
env:
GRADLE_OPTS: "-Dscan.link.VCS=${{ github.event.pull_request.html_url }}"

jobs:
board_validator:
Expand All @@ -33,7 +35,10 @@ jobs:
java-version: [17]

steps:
- uses: actions/checkout@v4
- 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
Expand All @@ -43,6 +48,10 @@ jobs:

- 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
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/validate-namechanges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- "megamek/data/mechfiles/**.mtf"
- "megamek/data/mechfiles/name_changes.txt"

env:
GRADLE_OPTS: "-Dscan.link.VCS=${{ github.event.pull_request.html_url }}"

jobs:
name_changes_validator:
runs-on: ${{ matrix.os }}
Expand All @@ -26,7 +29,10 @@ jobs:
java-version: [17]

steps:
- uses: actions/checkout@v4
- 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
Expand All @@ -36,6 +42,10 @@ jobs:

- 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
Expand Down

0 comments on commit 54f9c3a

Please sign in to comment.