From 0b221e16f352007fa6372a133df95360fe4c7f05 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Fri, 12 Aug 2022 20:37:39 +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 | 17 +++++++---------- .travis.yml | 19 ------------------- 2 files changed, 7 insertions(+), 29 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index cd0e131..5b860dc 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,17 +1,14 @@ name: GitHub CI on: push: - branches: - - master - pull_request: jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn clean package -DskipTests=true -Dmaven.javadoc.skip=true -B -V + - uses: actions/checkout@v1 + - name: 设置 jdk 版本 + uses: actions/setup-java@v1 + with: + java-version: 17 + - name: 编译 + run: mvn clean package -DskipTests -Dmaven.javadoc.skip=true -B -V diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 243b9d1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -# 语言 -language: java -# 执行脚本 -script: "mvn clean package -DskipTests=true -Dmaven.javadoc.skip=true -B -V" -# 通知 -notifications: - email: - recipients: - - 237497819@qq.com - on_success: always # default: change - on_failure: always # default: always -# 缓存 -cache: - directories: - - '$HOME/.m2/repository' - -branches: - only: - - master