Skip to content

Split CI workflow into separate compile, test, and build jobs#5

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/add-compile-test-build
Draft

Split CI workflow into separate compile, test, and build jobs#5
Copilot wants to merge 4 commits intomainfrom
copilot/add-compile-test-build

Conversation

Copy link

Copilot AI commented Jan 26, 2026

Restructures the GitHub Actions workflow from a single monolithic job into three sequential jobs for better visibility and fail-fast behavior.

Changes

  • Workflow structure: Split into compiletestbuild jobs using needs dependencies

    • compile: mvn -B compile
    • test: mvn -B test (skipped if compile fails)
    • build: mvn -B package + WAR artifact upload (skipped if test fails)
  • Security: Added explicit permissions

    • Workflow-level: contents: read
    • Build job only: contents: write (for dependency graph submission)
  • Artifacts: WAR file uploaded with 7-day retention

jobs:
  compile:
    name: Compile
    runs-on: ubuntu-latest
    steps:
      - name: Compile with Maven
        run: mvn -B compile --file pom.xml

  test:
    name: Test
    needs: compile
    # ...

  build:
    name: Build
    needs: test
    # ...

Each job failure immediately stops the pipeline, making it easier to identify which phase failed without scrolling through monolithic logs.

Original prompt

can you create sub task in action to be like compile test and build


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits January 26, 2026 05:42
Co-authored-by: roofimon <29492+roofimon@users.noreply.github.com>
Co-authored-by: roofimon <29492+roofimon@users.noreply.github.com>
Co-authored-by: roofimon <29492+roofimon@users.noreply.github.com>
Copilot AI changed the title [WIP] Add compile, test, and build sub tasks Split CI workflow into separate compile, test, and build jobs Jan 26, 2026
Copilot AI requested a review from roofimon January 26, 2026 05:47
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