Skip to content

Add CI for java 19+20 #25

Add CI for java 19+20

Add CI for java 19+20 #25

Workflow file for this run

name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]
env:
JAVA: ${{ matrix.java }}
name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Test
run: mvn -B test jacoco:report
- uses: codecov/codecov-action@v3
with:
env_vars: JAVA
deploy:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/master'
name: Deploy
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 8
- name: Deploy
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: mvn -B clean deploy --settings ci-settings.xml -DskipTests