2020-06-21 16:14:29 -04:00
|
|
|
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-05-12 15:23:04 -04:00
|
|
|
java: [16-jdk]
|
2020-06-21 16:14:29 -04:00
|
|
|
runs-on: ubuntu-20.04
|
2020-11-05 13:12:01 -05:00
|
|
|
container:
|
|
|
|
image: openjdk:${{ matrix.java }}
|
|
|
|
options: --user root
|
2020-06-21 16:14:29 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-07-09 17:31:28 -04:00
|
|
|
- uses: gradle/wrapper-validation-action@v1
|
2021-08-31 09:00:20 -04:00
|
|
|
- run: ./gradlew check build publishToMavenLocal --stacktrace --parallel --warning-mode=fail
|
2020-11-15 14:06:27 -05:00
|
|
|
- run: mkdir run && echo "eula=true" >> run/eula.txt
|
2021-08-31 09:00:20 -04:00
|
|
|
- run: ./gradlew runAutoTestServer --stacktrace --warning-mode=fail
|
2020-06-21 16:14:29 -04:00
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Artifacts
|
|
|
|
path: build/libs/
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Artifacts
|
|
|
|
path: ./*/build/libs/
|