From 2ab64a12fb16a31727b5b641a7dcf6a7a436f500 Mon Sep 17 00:00:00 2001 From: helltractor <1664309610@qq.com> Date: Mon, 9 Dec 2024 16:23:07 +0800 Subject: [PATCH] chore: update workflow CI --- .github/workflows/java-build.yml | 29 ----------------------------- .github/workflows/maven.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/java-build.yml create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/java-build.yml b/.github/workflows/java-build.yml deleted file mode 100644 index 3208ab6..0000000 --- a/.github/workflows/java-build.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Java CI - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up JDK 21 - uses: actions/setup-java@v2 - with: - java-version: '21' - distribution: 'adopt' - - - name: Build, Test and Package with Maven - run: | - mvn clean install - mvn test - mvn package \ No newline at end of file diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..d9598b3 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,28 @@ +name: CI Build + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Maven Build + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + java-version: '21' + distribution: 'temurin' + cache: 'maven' + + - name: Build with Maven + run: mvn clean install \ No newline at end of file