This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
98 lines (97 loc) · 3 KB
/
ci.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: CI
on:
push:
branches:
- master
pull_request: {}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
neo4j_version:
- 4.0.0
- 4.0.3
jdbc_driver_version:
- 4.0.0
steps:
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/checkout@v2
- name: Cache ~/.m2/repository
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build against Neo4j v${{ matrix.neo4j_version }} (${{ matrix.os }})
run: mvn --quiet --batch-mode --show-version verify -D"neo4j.version"=${{ matrix.neo4j_version }} -D"neo4j-jdbc.version"=${{ matrix.jdbc_driver_version }}
remote-testing:
needs: build
runs-on: ubuntu-latest
env:
WITH_DOCKER: true
strategy:
fail-fast: false
matrix:
neo4j_version:
- 4.0.0
- 4.0.3
jdbc_driver_version:
- 4.0.0
services:
neo4j:
image: neo4j:${{ matrix.neo4j_version }}
ports:
- 7474:7474
env:
NEO4J_AUTH: neo4j/j4oen
volumes:
- $HOME/neo4j/data:/data
options: >-
--health-cmd "wget --quiet --tries=1 --spider http://localhost:7474/ || exit 1"
--health-interval 5s
--health-timeout 60s
--health-retries 12
steps:
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/checkout@v2
- name: Cache ~/.m2/repository
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run remote tests against Neo4j v${{ matrix.neo4j_version }}
run: mvn --quiet --batch-mode --show-version --also-make --projects liquigraph-core test -Dneo4j.version=${{ matrix.neo4j_version }} -D"neo4j-jdbc.version"=${{ matrix.jdbc_driver_version }}
deploy-snapshot:
if: github.ref == 'refs/heads/4.x' && github.repository == 'liquigraph/liquigraph'
needs: remote-testing
runs-on: ubuntu-latest
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
steps:
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- uses: actions/checkout@v2
- name: Cache ~/.m2/repository
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Deploy SNAPSHOT to Maven Central
run: mvn clean deploy -DskipTests --settings ./deploy-settings.xml