This workflow is named Maven Spotless Check
. It is designed to check the code formatting of a Maven project using the Spotless plugin.
This workflow is triggered when it is called from another workflow.
java-version
: Java version to use for building. Default is17
.java-distribution
: Java distribution to use for building. Default istemurin
.maven-args
: Additional arguments to pass to the Maven command. Default to empty.
spotless-check
: Checks the code formatting using the Spotless plugin.
This workflow is designed to be used as part of the CI/CD pipeline. It is triggered automatically on every push and pull request.
name: Maven Spotless Check
on:
push: [main]
pull_request: [main]
jobs:
spotless-check:
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-spotless-check.yml@main
For more information about reusable workflows, see the official GitHub documentation: https://docs.github.com/en/actions/using-workflows/reusing-workflows.