Skip to content

Commit

Permalink
Add a run of neoForgeIdeSync to the workflow
Browse files Browse the repository at this point in the history
Also apply eclipse/idea plugins to make more code run
  • Loading branch information
shartte committed Aug 11, 2024
1 parent 3128c00 commit 2481dc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: gradle/actions/setup-gradle@v3

- name: Run build
run: ./gradlew build
run: ./gradlew build neoForgeIdeSync
working-directory: ./testproject

- name: Ensure clean, build and test work in the same run
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ public void apply(Project project) {
});

var ideSyncTask = tasks.register("neoForgeIdeSync", task -> {
task.setGroup(INTERNAL_TASK_GROUP);
task.setDescription("A utility task that is used to create necessary files when the Gradle project is synchronized with the IDE project.");
task.dependsOn(createArtifacts);
task.dependsOn(extension.getIdeSyncTasks());
Expand Down
3 changes: 3 additions & 0 deletions testproject/common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
plugins {
id 'net.neoforged.moddev'
id 'maven-publish'
// Applying these two here allows us to test ide post-sync from the workflow
id 'eclipse'
id 'idea'
}

neoForge {
Expand Down

0 comments on commit 2481dc9

Please sign in to comment.