Fixed logging levels in PlayerUtils #56
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle | |
name: Java CI with Gradle | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Verify libs directory and JAR files | |
run: | | |
if [ ! -d "./libs" ]; then | |
echo "[!] Libs directory does not exist!" | |
exit 1 | |
fi | |
if [ ! -f "./libs/ProjectZomboid-core-41.78.16.jar" ]; then | |
echo "[!] ProjectZomboid-core-41.78.16.jar does not exist in libs!" | |
exit 1 | |
fi | |
if [ ! -f "./libs/ProjectZomboid-libs-41.78.16.jar" ]; then | |
echo "[!] ProjectZomboid-libs-41.78.16.jar does not exist in libs!" | |
exit 1 | |
fi | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2 | |
- name: Ensure resources are copied | |
run: ./gradlew processResources | |
- name: Build with Gradle Wrapper | |
run: ./gradlew build -x test | |
- name: Ensure test resources are copied | |
run: ./gradlew processTestResources | |
- name: Verify test resources | |
run: | | |
if [ ! -d "./src/test/resources/yaml" ]; then | |
echo "[!] Test directory does not exist!" | |
exit 1 | |
fi | |
- name: Test with Gradle Wrapper | |
run: ./gradlew test | |
dependency-submission: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Generate and submit dependency graph | |
uses: gradle/actions/dependency-submission@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2 |