This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
Merge branch '1.20.1-fabric' into 1.20.4-fabric #5
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: build | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: | | |
!contains(github.event.head_commit.message, '[ci skip]') | |
steps: | |
- name: checkout repository | |
uses: actions/[email protected] | |
- name: validate gradle wrapper | |
uses: gradle/[email protected] | |
- name: setup jdk 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: gradle | |
- name: make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: build | |
run: | | |
./gradlew build | |
client_test: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/[email protected] | |
- name: validate gradle wrapper | |
uses: gradle/[email protected] | |
- name: setup jdk 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: gradle | |
- name: make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: run testmod | |
uses: modmuss50/xvfb-action@v1 | |
with: | |
run: ./gradlew runClient --stacktrace --warning-mode=fail | |
#- uses: actions/[email protected] | |
# with: | |
# name: Test Screenshots | |
# path: run/screenshots | |
server_test: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/[email protected] | |
- name: validate gradle wrapper | |
uses: gradle/[email protected] | |
- name: setup jdk 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: gradle | |
- name: make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: run testmod | |
run: ./gradlew runServer --stacktrace --warning-mode=fail | |
packages: | |
needs: | |
- build | |
- client_test | |
- server_test | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/[email protected] | |
- name: validate gradle wrapper | |
uses: gradle/[email protected] | |
- name: setup jdk 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: gradle | |
- name: make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
./gradlew publish |