Reusable GitHub Actions workflows for my projects.
This repository centralizes CI/CD logic to avoid duplicating workflow definitions across repositories and to keep build standards consistent.
Builds a Maven project and runs the test suite.
Workflow
.github/workflows/maven-ci.yml
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
java-version |
string | No | 25 |
Java version used during the build |
Usage
name: CI
on:
push:
pull_request:
jobs:
ci:
uses: ybendris/github-workflows/.github/workflows/maven-ci.yml@v1
with:
java-version: "25"Reusable workflows should be referenced using tags.
uses: ybendris/github-workflows/.github/workflows/maven-ci.yml@v1When a workflow change is ready:
git tag v1.1
git push origin v1.1Consumer repositories can then upgrade when appropriate:
uses: ybendris/github-workflows/.github/workflows/maven-ci.yml@v1.1