Update mod-building.yml #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mod building | ||
on: [push] | ||
jobs: | ||
mod-building: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: setup JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
cache: gradle | ||
- name: make gradle wrapper executable | ||
run: chmod +x ./gradlew | ||
- name: building-mod | ||
run: ./gradlew build | ||
- name: Run server for 1.5 minutes | ||
run: | | ||
mkdir run | ||
echo "eula=true" > run/eula.txt | ||
timeout 90 ./gradlew runServer | tee --append server.log || true | ||
- name: Test no errors reported during server run | ||
run: | | ||
chmod +x .github/scripts/test-no-error-reports.sh | ||
.github/scripts/test-no-error-reports.sh | ||