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
80 lines (80 loc) · 2.38 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
name: CI
on:
push:
branches:
- 4.x
pull_request: {}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- uses: actions/checkout@v3
- name: Cache ~/.m2/repository
uses: actions/[email protected]
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Unit tests on ${{ matrix.os }}
run: mvn --quiet --batch-mode --show-version package
env:
NEO4J_VERSION: ${{ matrix.neo4j_version }}
container-tests:
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
neo4j_version: # EE or CE is driven by `org.liquigraph.testing.TestNeo4jContainer`
- 4.2.15
- 4.3.10
- 4.4.4
steps:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- uses: actions/checkout@v3
- name: Cache ~/.m2/repository
uses: actions/[email protected]
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Containerized tests | Neo4j v${{ matrix.neo4j_version }}
run: mvn --quiet --batch-mode --show-version verify
deploy-snapshot:
if: github.ref == 'refs/heads/4.x' && github.repository == 'liquibase/liquigraph'
needs: container-tests
runs-on: ubuntu-latest
env:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_PASS: ${{ secrets.OSSRH_PASS }}
steps:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- uses: actions/checkout@v3
- name: Cache ~/.m2/repository
uses: actions/[email protected]
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