Skip to content

Commit

Permalink
Merge pull request #107 from refinedmods/feat/GH-106/gametests
Browse files Browse the repository at this point in the history
feat: neoforge gametests
  • Loading branch information
raoulvdberge authored May 25, 2024
2 parents 0ffda64 + 66695b7 commit 40985e0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
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

0 comments on commit 40985e0

Please sign in to comment.