mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2025-07-03 02:41:29 +02:00
Allow marking the mod as client-only (#9)
This commit is contained in:
parent
3700d3b91d
commit
5107a22d58
7
.github/workflows/build-and-test.yml
vendored
7
.github/workflows/build-and-test.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user