diff --git a/maven.yml b/maven.yml new file mode 100644 index 00000000..89bf50e7 --- /dev/null +++ b/maven.yml @@ -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 }}