From 66695b7263455750d9e2156ec41e77d8b05cd904 Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Sat, 25 May 2024 12:07:06 +0200 Subject: [PATCH] feat: neoforge gametests --- .github/workflows/build.yml | 9 +++++++++ CHANGELOG.md | 4 ++++ helper.gradle | 1 + 3 files changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93451d2..bcbfc14 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,10 @@ on: required: false type: boolean default: ${{ !github.event.pull_request.head.repo.fork }} + gametests: + required: false + type: boolean + default: false jobs: build: runs-on: ubuntu-latest @@ -39,6 +43,11 @@ jobs: run: ./gradlew build codeCoverageReport env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Gametests + if: ${{ inputs.gametests == true }} + run: ./gradlew runGameTestServer + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Analyze if: ${{ inputs.sonarqube == true }} run: ./gradlew sonar diff --git a/CHANGELOG.md b/CHANGELOG.md index ae1352f..cee5d8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added + +- Support for NeoForge gametests. + ## [0.11.5] - 2024-03-16 ### Fixed diff --git a/helper.gradle b/helper.gradle index 71677b8..46c4dca 100644 --- a/helper.gradle +++ b/helper.gradle @@ -202,6 +202,7 @@ allprojects { } gameTestServer { systemProperty 'neoforge.enabledGameTestNamespaces', modId + modSource project.sourceSets.test } data { var destinationProject = commonProject != null ? commonProject : project