From a7d828daebfb191c90ba755c6c5f87ba6237a099 Mon Sep 17 00:00:00 2001 From: Tom Hicks Date: Mon, 28 Sep 2026 00:12:16 -0700 Subject: [PATCH] Adds tests to github actions and a build badge. --- .github/workflows/gradle.yml | 14 ++++++++++++++ README.md | 2 ++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1636ca3..904fd85 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -27,6 +27,20 @@ jobs: gradle-version: '9.8.0' cache-read-only: ${{ github.ref != 'refs/heads/develop' }} + - name: Run Unit Tests + run: ./gradlew test + + - name: Upload Test Report + if: always() + uses: actions/upload-artifact@v7 + with: + name: MobScores-test-report + path: | + build/reports/tests/test + build/test-results/test + if-no-files-found: ignore + retention-days: 14 + - name: Build with Gradle Wrapper run: ./tools/build-plugin.sh diff --git a/README.md b/README.md index 34ba6e6..bb35f78 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # MobScores +[![Java CI with Gradle](https://github.com/headhunter45/MobScores/actions/workflows/gradle.yml/badge.svg)](https://github.com/headhunter45/MobScores/actions/workflows/gradle.yml) + MobScores awards ScoreKeeper points for configured mob kills. It is a Paper-only plugin for Paper 26.2 and 26.3, and requires the ScoreKeeper plugin to be installed and enabled first. ## Requirements