2020-06-21 16:14:29 -04:00
|
|
|
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-05-01 10:44:16 -04:00
|
|
|
java: [17-jdk, 18-jdk]
|
2020-06-21 16:14:29 -04:00
|
|
|
runs-on: ubuntu-20.04
|
2020-11-05 13:12:01 -05:00
|
|
|
container:
|
2021-11-12 07:48:58 -05:00
|
|
|
image: eclipse-temurin:${{ matrix.java }}
|
2020-11-05 13:12:01 -05:00
|
|
|
options: --user root
|
2020-06-21 16:14:29 -04:00
|
|
|
steps:
|
2021-11-12 07:48:58 -05:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-07-09 17:31:28 -04:00
|
|
|
- uses: gradle/wrapper-validation-action@v1
|
2022-06-28 15:38:10 -04:00
|
|
|
- run: ./gradlew check build publishToMavenLocal --stacktrace --warning-mode=fail -Porg.gradle.parallel.threads=4
|
2022-09-09 07:45:06 -04:00
|
|
|
- uses: Juuxel/publish-checkstyle-report@v1
|
|
|
|
if: ${{ failure() }}
|
|
|
|
with:
|
|
|
|
reports: |
|
|
|
|
**/build/reports/checkstyle/*.xml
|
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/
|
2021-11-25 10:06:25 -05:00
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Maven Local
|
|
|
|
path: /root/.m2/repository
|
2022-11-22 11:49:00 -05:00
|
|
|
|
|
|
|
client_test:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
distribution: 'microsoft'
|
|
|
|
java-version: '17'
|
|
|
|
- name: Run Auto test Client
|
|
|
|
uses: modmuss50/xvfb-action@v1
|
|
|
|
with:
|
|
|
|
run: ./gradlew runProductionAutoTestClient --stacktrace --warning-mode=fail
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: Test Screenshots
|
|
|
|
path: run/screenshots
|