Skip to content

MinecraftServer and ServerPlayer #5

MinecraftServer and ServerPlayer

MinecraftServer and ServerPlayer #5

Workflow file for this run

name: Java CI
on:
push:
branches:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up git submodules
run: git submodule init && git submodule update
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build with Gradle
run: ./gradlew build -x test -x longRunTest
- name: Run tests
run: ./gradlew check
- name: Upload compiled jars
uses: actions/upload-artifact@v4
with:
name: compiled-jars
path: build/libs/*.jar
- name: Upload test report
if: always()
uses: actions/upload-artifact@v4
with:
name: test-reports
path: build/reports/