-
Notifications
You must be signed in to change notification settings - Fork 455
115 lines (108 loc) · 2.77 KB
/
build.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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: Build Project
on:
push:
branches-ignore:
- 'dependabot/*'
tags-ignore:
- r[0-9]*
workflow_dispatch:
jobs:
Build:
uses: evanchooly/workflows/.github/workflows/build.yml@master
with:
java: 20
saveBuild: true
maven-flags: "-Dmongodb=6"
Test:
needs:
- Build
strategy:
matrix:
java: [ 20, 11 ]
mongo: [ 6 ]
driver: [ 4.9.1 ]
include:
- java: 11
mongo: 5
driver: 4.9.1
- java: 11
mongo: 4.4
driver: 4.9.1
- java: 11
mongo: 4.2
driver: 4.9.1
- java: 11
mongo: 4.0
driver: 4.9.1
- java: 11
mongo: 6
driver: 4.8.1
- java: 11
mongo: 6
driver: 4.7.2
- java: 11
mongo: 6
driver: 4.6.1
- java: 11
mongo: 6
driver: 4.5.1
- java: 11
mongo: 6
driver: 4.4.2
- java: 11
mongo: 6
driver: 4.3.4
- java: 11
mongo: 6
driver: 4.2.3
- java: 11
mongo: 6
driver: 4.1.2
- java: 11
mongo: 6
driver: 4.0.6
uses: evanchooly/workflows/.github/workflows/build.yml@master
secrets:
GH_TOKEN: ${{ secrets.TESTING_GH_OAUTH }}
with:
java: ${{ matrix.java }}
reuseBuild: true
archive-name: "${{matrix.mongo}}-${{matrix.driver}}-${{matrix.java}}-${{github.run_id}}"
maven-flags: "-Dmongodb=${{ matrix.mongo }} -Ddriver.version=${{ matrix.driver }}"
Snapshots:
if: github.ref_type == 'branch'
needs:
- Test
uses: evanchooly/workflows/.github/workflows/release.yml@master
secrets:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GH_TOKEN: ${{ secrets.GH_OAUTH }}
Docs:
name: Update Documentation
runs-on: ubuntu-latest
needs:
- Snapshots
steps:
- name: Invoke antora build
uses: benc-uk/workflow-dispatch@v121
with:
workflow: Docs
repo: MorphiaOrg/morphia-docs
token: ${{ secrets.PUSH_TOKEN }}
ref: refs/heads/master
Critter:
name: Build Critter snapshot
needs:
- Snapshots
runs-on: ubuntu-latest
steps:
- name: Invoke critter build
uses: benc-uk/workflow-dispatch@v121
with:
workflow: "Build Project"
repo: MorphiaOrg/critter
token: ${{ secrets.PUSH_TOKEN }}
ref: refs/heads/master