-
Notifications
You must be signed in to change notification settings - Fork 112
37 lines (35 loc) · 1.12 KB
/
jvm-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: JVM CI with Maven
on:
push:
branches:
- '5.0'
pull_request:
branches:
- '5.0'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: [8, 11, 17, 21]
scala-version: [2.12, 2.13]
neo4j-version: ["4.4", "5"]
name: Build with JDK ${{ matrix.java-version }}, Scala ${{ matrix.scala-version }}, Spark ${{ matrix.spark-version }} and Neo4j ${{ matrix.neo4j-version }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK {{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
env:
CI: true
run: ./mvnw clean verify -Djava.version=${{ matrix.java-version }} -Dscala-${{ matrix.scala-version }} -Dneo4j-${{ matrix.neo4j-version }} --no-transfer-progress