From 4a10fdd4cf541d7275b0ea1dff98dd7ba5a3571f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Manteaux?= Date: Thu, 14 Dec 2023 11:15:01 +0100 Subject: [PATCH] Replace travis by Github actions --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ .travis.yml | 4 ---- 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..905f9c0 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI + +on: + push: + branches: [ "master" ] + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Cache Maven packages + uses: actions/cache@v3 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Build & test with Maven + run: mvn -B clean test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2b2dfcb..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: java - -jdk: - - oraclejdk8 \ No newline at end of file