diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c8197f7..47c73dc7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,21 +1,35 @@ # This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven name: Java CI with Maven -on: [ push, pull_request ] +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] jobs: build: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: [ '8', '11' ] steps: - - uses: actions/checkout@v2 - - name: Set up JDK 8 - uses: actions/setup-java@v2 + - uses: actions/checkout@v4 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v4 with: - java-version: '8' - distribution: 'adopt' + java-version: ${{ matrix.java }} + distribution: 'temurin' cache: maven - name: Build with Maven - run: mvn --batch-mode --update-snapshots verify \ No newline at end of file + run: mvn --batch-mode --update-snapshots verify + + - name: Publish Test Results + if: always() + uses: EnricoMi/publish-unit-test-result-action@v2 + with: + files: target/surefire-reports/*.xml \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ffa34b4e..00000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: java - -sudo: false - -script: mvn -Drandomized.multiplier=10 clean verify jacoco:report -arch: - - amd64 - - ppc64le -jdk: - - oraclejdk8 - - openjdk8 - - openjdk11 -#TODO - oraclejdk9 - -dist: trusty # Travis Xenial doesn't have oraclejdk8 - -notifications: - email: - - spatial4j-dev@locationtech.org - -after_success: - - du -hs target/site/jacoco/jacoco.xml - - bash <(curl -s https://codecov.io/bash) -