Skip to content

Add microsphere-build-example sub-module and update testing setup#156

Merged
mercyblitz merged 14 commits intomicrosphere-projects:mainfrom
mercyblitz:main
Mar 19, 2026
Merged

Add microsphere-build-example sub-module and update testing setup#156
mercyblitz merged 14 commits intomicrosphere-projects:mainfrom
mercyblitz:main

Conversation

@mercyblitz
Copy link
Copy Markdown
Contributor

This pull request introduces a new example module to the project and modernizes the build and CI workflows. The main focus is to provide a minimal example project (microsphere-build-example) that exercises the parent POM's build profiles and plugins, as well as to enhance CI by adding code coverage reporting and updating GitHub Actions to use the latest versions. Additionally, documentation and Maven wrapper configuration are improved for better usability and reproducibility.

New Example Module:

  • Added a new microsphere-build-example module with its own pom.xml, a sample service (ExampleService.java), unit tests (ExampleServiceTest.java), and AsciiDoc documentation to demonstrate and validate build profiles and plugins from the parent POM. [1] [2] [3] [4]

CI/CD Workflow Improvements:

  • Updated .github/workflows/maven-build.yml to:

    • Restrict push builds to the dev branch and expand pull request builds to include main, dev, and release branches.
    • Use the latest actions/checkout@v5 and actions/setup-java@v5.
    • Switch to the Maven wrapper (./mvnw) and activate test, docs, and coverage profiles by default.
    • Add a step to upload code coverage results to Codecov. [1] [2]
  • Updated .github/workflows/merge-main-to-branches.yml to use actions/checkout@v5 for consistency and improved security. [1] [2]

Build Tooling and Documentation:

  • Added and configured the Maven wrapper in .mvn/wrapper/maven-wrapper.properties for reproducible builds.
  • Updated README.md to include a Codecov badge, reflecting the new code coverage reporting.

Copilot AI and others added 14 commits March 19, 2026 07:06
…lugins

Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…th profiles

Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…roperties)

Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…orkflows

Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
Limit the push event to only the 'dev' branch and expand pull request branches.
Introduce asciidoctor-maven-plugin.version properties in two profile property sections (set to 2.2.6 and 3.2.0 respectively) so the Asciidoctor Maven plugin version is explicitly defined per profile, avoiding implicit/resolved versions and ensuring consistent builds.
…for-testing

Add microsphere-build-example sub-module; migrate tests to JUnit Jupiter 5.14.3
Add a Codecov coverage badge to the README, linking to the project's Codecov graph for the main branch so coverage status is displayed alongside existing build badges.
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 19, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

@mercyblitz mercyblitz merged commit c85a504 into microsphere-projects:main Mar 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants