diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml new file mode 100644 index 0000000..278219c --- /dev/null +++ b/.github/workflows/maven-build.yml @@ -0,0 +1,29 @@ +name: Maven Build + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + types: [ opened, synchronize, reopened ] + branches: + - main + +jobs: + build-and-analyse: + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v4 + - name: Set up JDK ${{matrix.java}} + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{matrix.java}} + cache: 'maven' + + - name: Test with Maven + run: ./mvnw clean test -ntp -B diff --git a/.sdkmanrc b/.sdkmanrc new file mode 100644 index 0000000..7bcb041 --- /dev/null +++ b/.sdkmanrc @@ -0,0 +1,2 @@ +java=8.0.432-zulu +maven=3.9.9