Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: neoforge gametests #107

Merged
merged 1 commit into from
May 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions helper.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ allprojects {
}
gameTestServer {
systemProperty 'neoforge.enabledGameTestNamespaces', modId
modSource project.sourceSets.test
}
data {
var destinationProject = commonProject != null ? commonProject : project
Expand Down
Loading