Mindustry/.github/workflows/pr.yml

22 lines
510 B
YAML
Raw Normal View History

2020-11-20 06:53:02 +07:00
name: Pull Request Tests
2021-04-06 22:50:49 +07:00
on: [pull_request, workflow_dispatch]
2020-11-20 06:53:02 +07:00
jobs:
buildJava14:
runs-on: ubuntu-latest
steps:
2020-11-20 07:27:21 +07:00
- uses: actions/checkout@v2
2021-06-14 21:41:19 +07:00
- name: Set up JDK 16
2020-11-20 06:53:02 +07:00
uses: actions/setup-java@v1
with:
2021-06-14 21:41:19 +07:00
java-version: 16
2020-11-20 06:53:02 +07:00
- name: Run unit tests and build JAR
run: ./gradlew test desktop:dist
- name: Upload desktop JAR for testing
uses: actions/upload-artifact@v2
with:
name: Desktop JAR (zipped)
path: desktop/build/libs/Mindustry.jar