Migrate from Travis CI to GitHub Actions

This commit is contained in:
Florian Schmaus
2021-05-03 12:49:38 +02:00
parent ef987253ba
commit 6da9e8e925
2 changed files with 33 additions and 5 deletions

33
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: CI
on: [push, pull_request]
jobs:
build:
name: Build Spark
runs-on: ubuntu-20.04
strategy:
matrix:
java:
- 11
- 15
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify