mirror of
https://github.com/zDevelopers/ImageOnMap.git
synced 2024-10-31 23:59:34 +01:00
38 lines
733 B
YAML
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
|