Implemented GHA for simonaAPI #275
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #247
This pull request introduces a new GitHub Actions CI pipeline and includes several supporting scripts and configuration changes. The most important changes are the addition of the CI workflow, branch name validation, semantic versioning tasks, and version checking scripts.
CI Pipeline Setup:
.github/workflows/ci.yml
to automate build, test, and deployment processes. This includes steps for setting up Java and Gradle, checking branch names, running tests, building JavaDocs, and deploying to Maven Central.Branch Name Validation:
gradle/scripts/branchName.gradle
to validate branch names against predefined patterns. This ensures branch names follow the correct format.scripts/branch_type.sh
to determine the branch type based on the branch name, setting an environment variable accordingly.Semantic Versioning:
gradle/scripts/semVer.gradle
for obtaining the current and development versions of the project. These tasks are used to enforce semantic versioning.Version Checking:
scripts/get_versions.sh
to fetch the current version from the main and dev branches, storing them in environment variables.scripts/run-version-check.sh
to orchestrate the version checking process by callingget_versions.sh
and thenversion_check.sh
.scripts/version_check.sh
to compare the PR version with the main and dev branch versions, enforcing versioning rules based on the target branch.Documentation:
CHANGELOG.md
to include the addition of the GitHub Actions pipeline.