From 110febc5de5defce293d958cfe5d0d1a6f8d0bdd Mon Sep 17 00:00:00 2001 From: XenoAmess Date: Sun, 23 Aug 2020 16:48:47 +0800 Subject: [PATCH 1/2] add github actions ci and dependabot. --- .github/dependabot.yml | 27 ++++++++++++++++++ .github/workflows/build.yml | 56 +++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..ece4f21e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,27 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" + schedule: + interval: "daily" + target-branch: "master" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + target-branch: "master" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..7d4063e4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,56 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Java CI + +on: [ push ] + +jobs: + build: + + runs-on: ubuntu-latest + continue-on-error: ${{ matrix.experimental }} + strategy: + matrix: + java: [ 8, 11 ] + experimental: [ false ] + + steps: + - uses: actions/checkout@v2.3.2 + - uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-gradle-m2-${{ hashFiles('**/build.gradle') }} + restore-keys: | + ${{ runner.os }}-gradle- + - uses: actions/cache@v2 + with: + path: ~/.gradle/caches/ + key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/build.gradle') }} + restore-keys: | + ${{ runner.os }}-gradle- + - uses: actions/cache@v2 + with: + path: ~/.gradle/wrapper/ + key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/build.gradle') }} + restore-keys: | + ${{ runner.os }}-gradle- + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v1.4.1 + with: + java-version: ${{ matrix.java }} + - name: Build Build Build! + run: | + mvn install \ No newline at end of file From 1a0aab77e6446d324b1b74bb97e904e124623873 Mon Sep 17 00:00:00 2001 From: XenoAmess Date: Mon, 24 Aug 2020 04:10:28 +0800 Subject: [PATCH 2/2] add github actions ci and dependabot. --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d4063e4..f42424bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,12 +19,12 @@ on: [ push ] jobs: build: - - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} strategy: matrix: - java: [ 8, 11 ] + os: [ ubuntu-latest , windows-latest , macos-latest ] + java: [ 8, 11, 14 ] experimental: [ false ] steps: