fix(semantic-release): better config (#22)
Release package / release (push) Successful in 57m40s
Release package / release (push) Successful in 57m40s
Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Reviewed-on: #22
This commit was merged in pull request #22.
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
||||
steps:
|
||||
- uses: gerlero/apt-install@v1
|
||||
with:
|
||||
packages: docker.io
|
||||
packages: openjdk-25-jdk-headless docker.io
|
||||
|
||||
- name: Setup SSH Key
|
||||
run: |
|
||||
@@ -28,12 +28,13 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v5
|
||||
- name: Cache Maven packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
distribution: "graalvm"
|
||||
java-version: "25"
|
||||
cache: "maven"
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: Log in to Gitea Container Registry
|
||||
uses: docker/login-action@v3
|
||||
|
||||
+21
-17
@@ -6,9 +6,14 @@ on:
|
||||
- main
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
checks: write
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,29 +27,28 @@ jobs:
|
||||
with:
|
||||
redis-version: "7.x"
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v5
|
||||
- name: Cache Maven packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
distribution: "graalvm"
|
||||
java-version: "25"
|
||||
cache: "maven"
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- uses: gerlero/apt-install@v1
|
||||
with:
|
||||
packages: build-essential zlib1g-dev docker.io
|
||||
packages: openjdk-25-jdk-headless docker.io
|
||||
|
||||
- name: Build and Test all modules
|
||||
run: |
|
||||
./mvnw -B install \
|
||||
-Dquarkus.container-image.push=false \
|
||||
-Dquarkus.container-image.push=false
|
||||
|
||||
- name: Jacoco Report to PR
|
||||
uses: madrapps/jacoco-report@v1.7.2
|
||||
if: always()
|
||||
- name: Publish Test Report
|
||||
uses: dorny/test-reporter@v3
|
||||
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)"
|
||||
name: "JUnit Tests Report"
|
||||
path: "**/target/surefire-reports/*.xml"
|
||||
reporter: java-junit
|
||||
fail-on-error: true
|
||||
|
||||
Reference in New Issue
Block a user