From 81cffc10242c7fc0358ef6ce8116d5f6ac19196e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Van=C4=9Bk?= Date: Sun, 17 Nov 2019 15:00:47 +0100 Subject: [PATCH] set up github actions --- .github/workflows/maven.yml | 25 +++++++++++++++++++++++++ .travis.yml | 7 ------- 2 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/maven.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..2b39abf3 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,25 @@ +name: Java CI +on: push +jobs: + build: + name: Java ${{ matrix.java }} + runs-on: ubuntu-latest + strategy: + matrix: + java: [8, 11, 13] + steps: + - name: Checkout project + uses: actions/checkout@v1 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Cache Maven repository + uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Build with Maven + run: mvn -B test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 66e171d1..00000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: java -jdk: - - openjdk8 - - openjdk11 -cache: - directories: - - $HOME/.m2 \ No newline at end of file