Skip to content

Add Maven CI workflow for main with enforced JaCoCo coverage#32

Merged
JuanEstebanMedina merged 2 commits into
mainfrom
copilot/add-maven-workflow-file
May 21, 2026
Merged

Add Maven CI workflow for main with enforced JaCoCo coverage#32
JuanEstebanMedina merged 2 commits into
mainfrom
copilot/add-maven-workflow-file

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 21, 2026

This adds a GitHub Actions workflow for Maven on push and pull_request targeting main. The pipeline now compiles the backend, runs unit tests, and enforces JaCoCo coverage at a minimum threshold of 70%.

  • CI workflow

    • adds .github/workflows/maven.yml
    • triggers on:
      • push to main
      • pull_request to main
    • runs on ubuntu-latest
    • uses Temurin JDK 21 with Maven dependency caching
    • defines explicit read-only token permissions
  • Build and verification flow

    • separates the pipeline into:
      • compile (./mvnw -B -DskipTests compile)
      • unit tests (./mvnw -B test)
      • verification / quality gate (./mvnw -B verify)
  • Coverage gate

    • updates the Maven JaCoCo configuration to enforce a minimum coverage ratio of 0.70
    • binds the JaCoCo check execution to verify so the threshold is enforced consistently in CI
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

permissions:
  contents: read

Copilot AI and others added 2 commits May 21, 2026 04:49
Agent-Logs-Url: https://github.com/ECI-TasteMap/TasteMapBackend/sessions/028dbbc4-d342-4e2d-a33c-520381a386cf

Co-authored-by: Waldron63 <102569311+Waldron63@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ECI-TasteMap/TasteMapBackend/sessions/028dbbc4-d342-4e2d-a33c-520381a386cf

Co-authored-by: Waldron63 <102569311+Waldron63@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

@Waldron63 Waldron63 marked this pull request as ready for review May 21, 2026 04:59
@JuanEstebanMedina JuanEstebanMedina merged commit 855a186 into main May 21, 2026
2 checks passed
@JuanEstebanMedina JuanEstebanMedina deleted the copilot/add-maven-workflow-file branch May 21, 2026 05:01
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.

3 participants