diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index cf82c05a1..8e85c0101 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -14,7 +14,12 @@ # specific language governing permissions and limitations under the License. # name: Java CI - Code tests -on: [pull_request] +on: + pull_request: +permissions: + contents: read + actions: read + checks: write env: MAVEN_OPTS: >- -Dmaven.artifact.threads=4 @@ -34,18 +39,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: 'Set up JDK 17' - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' - - name: 'Cache Maven packages' - uses: actions/cache@v3 - with: - path: ~/.m2 - key: 'cache' - restore-keys: 'cache' + cache: 'maven' - name: 'Build and test with Maven' run: mvn verify - name: 'Report test results' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 99e338503..000000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: java -sudo: false - -cache: - directories: - - "$HOME/.m2" - -jobs: - include: - - stage: test - jdk: openjdk11 - script: mvn verify -Pproduction -Dmaven.test.redirectTestOutputToFile=true -Dsurefire.rerunFailingTestsCount=2 - -branches: - only: - - master