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