Reusable GitHub Action for a complete Java CI pipeline with structured logging via Pipery. Supports Maven, Gradle, and Groovy — auto-detected or configurable.
name: CI
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pipery-dev/pipery-java-ci@v1
with:
project_path: .
github_token: ${{ secrets.GITHUB_TOKEN }}| Step | Tool | Skip input |
|---|---|---|
| SAST | SpotBugs / Semgrep | skip_sast |
| SCA | OWASP Dependency-Check | skip_sca |
| Lint | Checkstyle (Maven/Gradle) | skip_lint |
| Build | mvn package / gradle build |
skip_build |
| Test | mvn test / gradle test |
skip_test |
| Version | Semantic version bump | skip_versioning |
| Package | JAR / Docker image | skip_packaging |
| Release | GitHub Release + SHA tag | skip_release |
| Reintegrate | Merge back to default branch | skip_reintegration |
| Name | Default | Description |
|---|---|---|
project_path |
. |
Path to the project source tree. |
config_file |
.github/pipery/config.yaml |
Path to Pipery config file. |
java_version |
21 |
Java version to use. |
build_tool |
auto |
Build tool: auto, maven, gradle, or groovy. |
tests_path |
`` | Test target passed to the build tool (class name or pattern). |
registry |
ghcr.io |
Container registry for packaging. |
registry_username |
`` | Registry login username. |
registry_password |
`` | Registry login password or token. |
version_bump |
patch |
Version bump type: patch, minor, or major. |
github_token |
`` | GitHub token for release and reintegration. |
log_file |
pipery.jsonl |
Path to the JSONL structured log file. |
skip_sast |
false |
Skip the SAST step. |
skip_sca |
false |
Skip the SCA step. |
skip_lint |
false |
Skip the lint step. |
skip_build |
false |
Skip the build step. |
skip_test |
false |
Skip the test step. |
skip_versioning |
false |
Skip the versioning step. |
skip_packaging |
false |
Skip the packaging step. |
skip_release |
false |
Skip the release step. |
skip_reintegration |
false |
Skip the reintegration step. |
Pipery is an open-source CI/CD observability platform. Every step script runs under psh (Pipery Shell), which intercepts all commands and emits structured JSONL events — giving you full visibility into your pipeline without any manual instrumentation.
- Browse logs in the Pipery Dashboard
- Find all Pipery actions on GitHub Marketplace
- Source code: pipery-dev
# Run the action locally against test-project/
pipery-actions test --repo .
# Regenerate docs
pipery-actions docs --repo .
# Dry-run release
pipery-actions release --repo . --dry-run