fdcecf8368
Release package / release (push) Successful in 50m34s
Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Reviewed-on: #20
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: Java CI with Maven
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: shogo82148/actions-setup-redis@v1
|
|
with:
|
|
redis-version: "7.x"
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: "graalvm"
|
|
java-version: "25"
|
|
cache: "maven"
|
|
|
|
- uses: gerlero/apt-install@v1
|
|
with:
|
|
packages: build-essential zlib1g-dev docker.io
|
|
|
|
- name: Build and Test all modules
|
|
run: |
|
|
./mvnw -B install \
|
|
-Dquarkus.container-image.push=false \
|
|
|
|
- name: Jacoco Report to PR
|
|
uses: madrapps/jacoco-report@v1.7.2
|
|
if: always()
|
|
with:
|
|
paths: |
|
|
./**/jacoco.xml,
|
|
token: ${{ secrets.ACCESS_TOKEN }}
|
|
min-coverage-overall: 40
|
|
min-coverage-changed-files: 60
|
|
title: "📊 Báo cáo Độ bao phủ Kiểm thử (Test Coverage)"
|