v8 ja #308
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
name: PR Tests | |
on: pull_request | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Commit | |
uses: actions/checkout@v4 | |
- name: Set up JDK 20 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 20 | |
distribution: temurin | |
- name: Compile test JAR | |
run: | | |
export PATH=./tools:$PATH | |
./gradlew desktop:dist --parallel | |
- name: Upload desktop JAR for testing | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Desktop JAR (zipped) | |
path: desktop/build/libs/Mindustry.jar | |
- name: Run Tests | |
if: ${{ always() }} | |
run: ./gradlew tests:test |