diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2021-11-24 22:21:21 +0800 |
---|---|---|
committer | Glease <4586901+Glease@users.noreply.github.com> | 2021-11-24 23:47:45 +0800 |
commit | b0698efc456a3dc92a8b7a059b01433d461866e3 (patch) | |
tree | e0f5025c80e105222d59fda860327e66f80045b1 /.github/workflows/toolchain-compatibility.yml | |
download | GT5-Unofficial-b0698efc456a3dc92a8b7a059b01433d461866e3.tar.gz GT5-Unofficial-b0698efc456a3dc92a8b7a059b01433d461866e3.tar.bz2 GT5-Unofficial-b0698efc456a3dc92a8b7a059b01433d461866e3.zip |
Initial commit
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Diffstat (limited to '.github/workflows/toolchain-compatibility.yml')
-rw-r--r-- | .github/workflows/toolchain-compatibility.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/toolchain-compatibility.yml b/.github/workflows/toolchain-compatibility.yml new file mode 100644 index 0000000000..a082bf33ab --- /dev/null +++ b/.github/workflows/toolchain-compatibility.yml @@ -0,0 +1,43 @@ +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle + +name: Check if toolchain is applied when using differnt java versions + +on: + pull_request: + branches: [ master, main ] + +jobs: + check-compatibility-with-java-11: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Setup the workspace + run: ./gradlew setupCIWorkspace + + - name: Build the mod + run: ./gradlew build + + - name: Run server for 1 minute + run: | + mkdir run + echo "eula=true" > run/eula.txt + timeout 10 ./gradlew runServer || true + + - name: Test no crashes happend + run: | + chmod +x .github/scripts/test-no-crash-reports.sh + .github/scripts/test-no-crash-reports.sh |