diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml new file mode 100644 index 0000000..889d006 --- /dev/null +++ b/.github/workflows/maven-ci.yml @@ -0,0 +1,31 @@ +name: Maven CI + +on: + push: + branches: + - '**' + pull_request: + +permissions: + contents: read + +jobs: + verify: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 8 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '8' + cache: maven + + - name: Run tests + run: mvn -B test + + - name: Build package + run: mvn -B package diff --git a/pom.xml b/pom.xml index 32e6645..af34987 100644 --- a/pom.xml +++ b/pom.xml @@ -77,13 +77,19 @@ org.mockito mockito-core - 5.5.0 + 4.11.0 test org.mockito mockito-junit-jupiter - 5.5.0 + 4.11.0 + test + + + org.mockito + mockito-inline + 4.11.0 test