This commit is contained in:
@@ -12,13 +12,11 @@ RUN sed -i 's|http://archive.ubuntu.com|https://apt.demonkernel.io.vn|g' /etc/ap
|
|||||||
RUN apt-get update --fix-missing && apt-get install --no-install-recommends --no-install-suggests -y \
|
RUN apt-get update --fix-missing && apt-get install --no-install-recommends --no-install-suggests -y \
|
||||||
curl \
|
curl \
|
||||||
bash \
|
bash \
|
||||||
build-essential \
|
|
||||||
docker-buildx \
|
|
||||||
git \
|
git \
|
||||||
docker.io \
|
docker.io \
|
||||||
nodejs \
|
nodejs \
|
||||||
maven \
|
openjdk-25-jdk-headless \
|
||||||
libz-dev
|
maven
|
||||||
|
|
||||||
# 5. Cấu hình Git
|
# 5. Cấu hình Git
|
||||||
RUN git config --global --add safe.directory '*'
|
RUN git config --global --add safe.directory '*'
|
||||||
@@ -30,15 +28,6 @@ RUN curl -fsSL https://get.pnpm.io/install.sh | bash -
|
|||||||
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
|
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
|
||||||
&& install -m 0755 kubectl /usr/local/bin/kubectl
|
&& install -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
# 4. Cài đặt Mandrel 25
|
|
||||||
# Lưu ý: Dùng bản linux-amd64 (glibc) tiêu chuẩn cho Ubuntu
|
|
||||||
ENV JAVA_HOME=/usr/lib/jvm/mandrel
|
|
||||||
ENV GRAALVM_HOME=/usr/lib/jvm/mandrel
|
|
||||||
ENV PATH="${JAVA_HOME}/bin:${PATH}"
|
|
||||||
|
|
||||||
RUN mkdir -p ${JAVA_HOME} && \
|
|
||||||
curl -L https://github.com/graalvm/mandrel/releases/download/mandrel-25.0.2.0-Final/mandrel-java25-linux-amd64-25.0.2.0-Final.tar.gz | tar -xz -C ${JAVA_HOME} --strip-components=1
|
|
||||||
|
|
||||||
# 6. Cài đặt JBang & Quarkus CLI
|
# 6. Cài đặt JBang & Quarkus CLI
|
||||||
ENV JBANG_DIR="/root/.jbang"
|
ENV JBANG_DIR="/root/.jbang"
|
||||||
ENV PATH="${JBANG_DIR}/bin:${PATH}"
|
ENV PATH="${JBANG_DIR}/bin:${PATH}"
|
||||||
|
|||||||
@@ -38,13 +38,11 @@ jobs:
|
|||||||
./mvnw -B install \
|
./mvnw -B install \
|
||||||
-Dquarkus.container-image.push=false \
|
-Dquarkus.container-image.push=false \
|
||||||
|
|
||||||
- name: Jacoco Report to PR
|
- name: Publish Test Report
|
||||||
uses: madrapps/jacoco-report@v1.7.2
|
uses: dorny/test-reporter@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
paths: |
|
name: "JUnit Tests Report"
|
||||||
./**/jacoco.xml,
|
path: "**/target/surefire-reports/*.xml"
|
||||||
token: ${{ secrets.ACCESS_TOKEN }}
|
reporter: java-junit
|
||||||
min-coverage-overall: 40
|
fail-on-error: true
|
||||||
min-coverage-changed-files: 60
|
|
||||||
title: "📊 Báo cáo Độ bao phủ Kiểm thử (Test Coverage)"
|
|
||||||
|
|||||||
@@ -46,11 +46,6 @@
|
|||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>io.quarkus</groupId>
|
|
||||||
<artifactId>quarkus-jacoco</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.drinkool</groupId>
|
<groupId>com.drinkool</groupId>
|
||||||
<artifactId>lib</artifactId>
|
<artifactId>lib</artifactId>
|
||||||
@@ -140,6 +135,9 @@
|
|||||||
>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
||||||
<maven.home>${maven.home}</maven.home>
|
<maven.home>${maven.home}</maven.home>
|
||||||
</systemPropertyVariables>
|
</systemPropertyVariables>
|
||||||
|
<forkCount>1</forkCount>
|
||||||
|
<reuseForks>true</reuseForks>
|
||||||
|
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -46,11 +46,6 @@
|
|||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>io.quarkus</groupId>
|
|
||||||
<artifactId>quarkus-jacoco</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.drinkool</groupId>
|
<groupId>com.drinkool</groupId>
|
||||||
<artifactId>lib</artifactId>
|
<artifactId>lib</artifactId>
|
||||||
@@ -126,6 +121,9 @@
|
|||||||
>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
||||||
<maven.home>${maven.home}</maven.home>
|
<maven.home>${maven.home}</maven.home>
|
||||||
</systemPropertyVariables>
|
</systemPropertyVariables>
|
||||||
|
<forkCount>1</forkCount>
|
||||||
|
<reuseForks>true</reuseForks>
|
||||||
|
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -46,11 +46,6 @@
|
|||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>io.quarkus</groupId>
|
|
||||||
<artifactId>quarkus-jacoco</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bitbucket.b_c</groupId>
|
<groupId>org.bitbucket.b_c</groupId>
|
||||||
<artifactId>jose4j</artifactId>
|
<artifactId>jose4j</artifactId>
|
||||||
@@ -118,6 +113,9 @@
|
|||||||
>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
>org.jboss.logmanager.LogManager</java.util.logging.manager>
|
||||||
<maven.home>${maven.home}</maven.home>
|
<maven.home>${maven.home}</maven.home>
|
||||||
</systemPropertyVariables>
|
</systemPropertyVariables>
|
||||||
|
<forkCount>1</forkCount>
|
||||||
|
<reuseForks>true</reuseForks>
|
||||||
|
<redirectTestOutputToFile>true</redirectTestOutputToFile>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<project
|
<project
|
||||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
@@ -32,53 +32,6 @@
|
|||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>io.quarkus</groupId>
|
|
||||||
<artifactId>quarkus-jacoco</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
<version>${quarkus.platform.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<version>${surefire-plugin.version}</version>
|
|
||||||
<configuration>
|
|
||||||
<systemPropertyVariables>
|
|
||||||
<quarkus.jacoco.data-file>target/jacoco.exec</quarkus.jacoco.data-file>
|
|
||||||
<quarkus.jacoco.reuse-data-file>true</quarkus.jacoco.reuse-data-file>
|
|
||||||
<quarkus.jacoco.report-location>target/jacoco-report</quarkus.jacoco.report-location>
|
|
||||||
</systemPropertyVariables>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.jacoco</groupId>
|
|
||||||
<artifactId>jacoco-maven-plugin</artifactId>
|
|
||||||
<version>0.8.14</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>prepare-agent</id>
|
|
||||||
<goals>
|
|
||||||
<goal>prepare-agent</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>report</id>
|
|
||||||
<phase>test</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>report</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<formats>
|
|
||||||
<format>XML</format>
|
|
||||||
</formats>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
||||||
Reference in New Issue
Block a user