diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..bf9af42 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: Java + +on: + push: + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Set up JDK 20 + uses: actions/setup-java@v2 + with: + java-version: '20' + distribution: 'adopt' + + - name: Build + run: mvn --batch-mode -DskipTests package + + - name: Test + run: mvn --batch-mode -Dmaven.test.failure.ignore=true test + + - name: Report + uses: dorny/test-reporter@v1 + if: always() + with: + name: Maven Tests + path: target/surefire-reports/*.xml + reporter: java-junit + fail-on-error: true