ImageOnMap/.github/workflows/ci.yml
2021-04-11 22:38:50 +02:00

38 lines
733 B
YAML

name: CI
on:
push:
branches:
- indev
pull_request:
branches:
- indev
jobs:
build:
name: Test on Java ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 9, 10, 11, 12, 13, 14, 15]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK 1.8
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 -B package --file pom.xml