Skip to content

Implementation of GitHub Actions #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

PhilippSchmelter
Copy link
Contributor

Closes #309

This pull request introduces several key changes to the CI/CD pipeline, branch name validation, and versioning for the project. The most significant updates include the implementation of GitHub Actions workflows, Gradle scripts for branch name validation and Maven publishing, and scripts for version checking.

CI/CD Pipeline Enhancements:

Branch Name Validation:

Versioning and Publishing:

  • gradle/scripts/mavenCentralPublish.gradle: Created a Gradle script for publishing artifacts to Maven Central, including tasks for generating source and Javadoc JARs.
  • gradle/scripts/semVer.gradle: Added tasks for handling semantic versioning using the semver-gradle plugin.
  • scripts/get_versions.sh, scripts/run-version-check.sh, scripts/version_check.sh: Introduced scripts to fetch and compare versions for pull requests and branches. [1] [2] [3]

Miscellaneous:

  • gradle/wrapper/gradle-wrapper.properties: Updated the Gradle wrapper to version 8.13 and added network timeout settings.
  • gradlew, gradlew.bat: Made minor updates to the Gradle wrapper scripts, including SPDX license identifier and improved error messages. [1] [2]

@PhilippSchmelter PhilippSchmelter added enhancement New feature or request dependencies Pull requests that update a dependency file Ci labels Apr 10, 2025
@PhilippSchmelter PhilippSchmelter self-assigned this Apr 10, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 16 changed files in this pull request and generated 1 comment.

Files not reviewed (11)
  • gradle/scripts/branchName.gradle: Language not supported
  • gradle/scripts/mavenCentralPublish.gradle: Language not supported
  • gradle/scripts/semVer.gradle: Language not supported
  • gradle/wrapper/gradle-wrapper.properties: Language not supported
  • gradlew: Language not supported
  • gradlew.bat: Language not supported
  • scripts/branch_type.sh: Language not supported
  • scripts/get_versions.sh: Language not supported
  • scripts/run-version-check.sh: Language not supported
  • scripts/version_check.sh: Language not supported
  • version.properties: Language not supported
Comments suppressed due to low confidence (1)

.github/workflows/dependabot-auto-merge.yml:20

  • [nitpick] Double-check if restricting auto-merge to only semver patch updates is intended; adjust the condition if merging for additional update types is desired.
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'

ORG_GRADLE_PROJECT_user: ${{ secrets.MAVENCENTRAL_USER }}
ORG_GRADLE_PROJECT_password: ${{ secrets.MAVENCENTRAL_PASS }}
run: |
if [ "${GITHUB_REF}" == "refs/heads/main" ]; then
Copy link
Preview

Copilot AI Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using the previously determined BRANCH_NAME variable instead of directly comparing GITHUB_REF to ensure consistent branch reference handling during deployment.

Suggested change
if [ "${GITHUB_REF}" == "refs/heads/main" ]; then
if [ "${BRANCH_NAME}" == "main" ]; then

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ci dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implementing GitHub Actions Pipeline + Gradle Update
1 participant