diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index d3253bb..baab1f7 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: Metropolis-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 e6121ae..ad5bc19 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Metropolis +[![Java CI with Gradle](https://github.com/headhunter45/Metropolis/actions/workflows/gradle.yml/badge.svg)](https://github.com/headhunter45/Metropolis/actions/workflows/gradle.yml) + Metropolis expands a protected Minecraft city as players join. Each player can receive a home plot connected by generated roads; WorldGuard protects the city, homes, and reserved plots. ## Features