From 4c1954be2c937bd6ec78c18227a2592d270fe113 Mon Sep 17 00:00:00 2001 From: Landlordway <126978865+Landlordway@users.noreply.github.com> Date: Sun, 5 Mar 2023 05:23:19 +0100 Subject: [PATCH] Create CI --- .github/workflows/CI | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/CI diff --git a/.github/workflows/CI b/.github/workflows/CI new file mode 100644 index 00000000..89bf50e7 --- /dev/null +++ b/.github/workflows/CI @@ -0,0 +1,61 @@ +name: CI + +on: + + push: + + branches: [ master ] + + pull_request: + + branches: [ master ] + +jobs: + + build: + + runs-on: ubuntu-latest + + strategy: + + matrix: + + java: [ 7, 8, 9, 10, 11] + + steps: + + - uses: actions/checkout@v2.3.4 + + - name: Set up JDK ${{ matrix.java }} + + uses: actions/setup-java@v1.4.3 + + with: + + java-version: ${{ matrix.java }} + + - name: Build with Maven + + run: mvn -B clean package + + finish: + + needs: build + + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v2.3.4 + + - name: Set up JDK 1.8 + + uses: actions/setup-java@v1.4.3 + + with: + + java-version: 1.8 + + - name: Build with Maven + + run: mvn -B clean cobertura:cobertura coveralls:report -DrepoToken=${{ secrets.COVERALLS_TOKEN }}