Skip to content

Commit abecfef

Browse files
committed
Change default Gradle tasks to 'check publish'
This is for the Gradle workflow. Adding 'check' before 'publish' allows the CI to check for things like licenses and unit tests (if applicable via the test task).
1 parent ac89654 commit abecfef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/groovy/net/minecraftforge/gradleutils/GenerateActionsWorkflow.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ abstract class GenerateActionsWorkflow extends DefaultTask {
9595
}
9696
] as Map<String, ?>
9797

98+
var taskPrefix = localPath ? ":${localPath}:" : ''
9899
var with = [
99100
'java' : this.gradleJavaVersion.get(),
100-
'gradle_tasks': "${localPath ? ":${localPath}:" : ''}build".toString()
101+
'gradle_tasks': "${taskPrefix}check ${taskPrefix}publish".toString()
101102
] as Map<String, ?>
102103
if (localPath) with.put('subproject', localPath)
103104

0 commit comments

Comments
 (0)