mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2025-07-04 19:31:40 +02:00
Allow specifying runServer timeout (#4)
This commit is contained in:
parent
fc47f9623b
commit
17d7db2a88
10
.github/workflows/build-and-test.yml
vendored
10
.github/workflows/build-and-test.yml
vendored
@ -5,6 +5,12 @@ name: Build and test
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
timeout:
|
||||||
|
description: 'Timeout for runServer (seconds)'
|
||||||
|
required: false
|
||||||
|
default: 90
|
||||||
|
type: number
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
@ -37,11 +43,11 @@ jobs:
|
|||||||
- name: Build the mod
|
- name: Build the mod
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
|
|
||||||
- name: Run server for 1.5 minutes
|
- name: Run server for ${{ inputs.timeout }} seconds
|
||||||
run: |
|
run: |
|
||||||
mkdir run
|
mkdir run
|
||||||
echo "eula=true" > run/eula.txt
|
echo "eula=true" > run/eula.txt
|
||||||
timeout 90 ./gradlew runServer 2>&1 | tee -a server.log || true
|
timeout ${{ inputs.timeout }} ./gradlew runServer 2>&1 | tee -a server.log || true
|
||||||
|
|
||||||
- name: Test no errors reported during server run
|
- name: Test no errors reported during server run
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user