From c8f5da7266615c85b36814227ce1d7bc3f92c701 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Fri, 12 Aug 2022 20:57:42 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20=E6=9B=B4=E6=96=B0=20?= =?UTF-8?q?CI=20=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/maven.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5b860dc..8238c76 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,14 +1,20 @@ -name: GitHub CI -on: - push: +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: 自动化编译检查 + +on: [ push ] + jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: 设置 jdk 版本 - uses: actions/setup-java@v1 + - uses: actions/checkout@v3 + - name: 设置 JDK 版本 + uses: actions/setup-java@v3 with: - java-version: 17 - - name: 编译 - run: mvn clean package -DskipTests -Dmaven.javadoc.skip=true -B -V + java-version: '17' + distribution: 'corretto' + cache: maven + - name: 编译检查 + run: mvn clean compile -DskipTests -Dmaven.javadoc.skip=true -B -V