Skip to content
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
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ jobs:
java-version: '17'
distribution: 'temurin'
- name: Build and validate project
run: mvn -B package --file pom.xml
run: |
if [ -z "$(find modules -mindepth 2 -maxdepth 2 -name pom.xml 2>/dev/null)" ]; then
echo "No plugin modules present under modules/; skipping build/validate (see test-generation workflow for scaffold validation)."
exit 0
fi
mvn -B package --file pom.xml
8 changes: 6 additions & 2 deletions .github/workflows/test-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ name: test-generation

# Integration test for the plugin generation process (gephi-maven-plugin's
# generate/validate/build-metadata/create-autoupdate goals). Runs on every
# master commit so a version bump of gephi-maven-plugin in pom.xml is
# regression-tested before real plugin repos pick it up.
# master commit and on PRs targeting master (master has no plugin modules of
# its own, so build.yml's build_and_test can't validate scaffold changes) so
# a version bump of gephi-maven-plugin in pom.xml is regression-tested before
# real plugin repos pick it up.
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
generation-integration-test:
Expand Down
Loading