Allow marking the mod as client-only (#9)

This commit is contained in:
miozune 2022-08-24 15:46:54 +09:00 committed by GitHub
parent 3700d3b91d
commit 5107a22d58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,11 @@ on:
required: false required: false
default: "setupCIWorkspace" default: "setupCIWorkspace"
type: string type: string
client-only:
description: 'Do not execute runServer'
required: false
default: false
type: boolean
jobs: jobs:
build-and-test: build-and-test:
@ -73,12 +78,14 @@ jobs:
FIXED_BRANCH: ${{ github.head_ref }}-spotless-fixes FIXED_BRANCH: ${{ github.head_ref }}-spotless-fixes
- name: Run server for ${{ inputs.timeout }} seconds - name: Run server for ${{ inputs.timeout }} seconds
if: ${{ !inputs.client-only }}
run: | run: |
mkdir run mkdir run
echo "eula=true" > run/eula.txt echo "eula=true" > run/eula.txt
timeout ${{ inputs.timeout }} ./gradlew --info --stacktrace runServer 2>&1 | tee -a server.log || true timeout ${{ inputs.timeout }} ./gradlew --info --stacktrace runServer 2>&1 | tee -a server.log || true
- name: Test no errors reported during server run - name: Test no errors reported during server run
if: ${{ !inputs.client-only }}
run: | run: |
chmod +x .gtnh-workflows/scripts/test_no_error_reports chmod +x .gtnh-workflows/scripts/test_no_error_reports
.gtnh-workflows/scripts/test_no_error_reports .gtnh-workflows/scripts/test_no_error_reports