Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 12, 2025

Migrates two composite actions from opencb/java-common-libs (branch TASK-8067) to centralize CI/CD components in this repository.

Actions Migrated

  • setup-java-maven: Sets up JDK, clones/compiles dependencies, configures Maven cache with dependency-aware keys
  • test-summary: Parses Surefire XML reports and generates markdown test summaries with per-module breakdowns

Changes

  • Copied complete action implementations preserving all logic, comments, and formatting
  • Fixed cache key to fallback to github.sha when no dependencies provided (improves robustness for workflows without dependency repos)
  • Updated README with usage examples for both actions

Patch for java-common-libs

Includes java-common-libs-updates.patch that updates 4 action references across 3 workflows to use:

uses: opencb/ci-core/.github/actions/setup-java-maven@main
uses: opencb/ci-core/.github/actions/test-summary@main

Apply instructions in MIGRATION_INSTRUCTIONS.md. The patch must be applied to opencb/java-common-libs branch TASK-8067 separately.

Usage Example

- name: Setup Java and Maven
  uses: opencb/ci-core/.github/actions/setup-java-maven@main
  with:
    java_version: '11'
    dependency_repos: 'java-common-libs,biodata'
    
- name: Generate Test Summary
  uses: opencb/ci-core/.github/actions/test-summary@main
  with:
    report_paths: './**/surefire-reports/TEST-*.xml'
Original prompt

migrate two composite GitHub Actions from the repository opencb/java-common-libs into this new repository (ci-core).


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits December 12, 2025 16:40
Co-authored-by: juanfeSanahuja <85166064+juanfeSanahuja@users.noreply.github.com>
Co-authored-by: juanfeSanahuja <85166064+juanfeSanahuja@users.noreply.github.com>
Co-authored-by: juanfeSanahuja <85166064+juanfeSanahuja@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate two composite GitHub Actions to ci-core repository Migrate composite GitHub Actions from java-common-libs to ci-core Dec 12, 2025
Copilot AI requested a review from juanfeSanahuja December 12, 2025 16:50
@juanfeSanahuja juanfeSanahuja marked this pull request as ready for review December 12, 2025 17:02
@juanfeSanahuja juanfeSanahuja merged commit ef6ff17 into main Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants