-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (63 loc) · 2.01 KB
/
build-dependants.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
name: build dependants
# mod-quick-marc master depend on the
# latest -SNAPSHOT of mod-record-specifications master.
# Try to build it with the current master of mod-record-specifications.
on:
pull_request:
branches: [ master ]
paths:
- 'pom.xml'
- 'api/**'
- 'mod-record-specifications-dto/**'
- 'mod-record-specifications-validator/**'
workflow_dispatch:
jobs:
mod-record-specifications:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/cache@v2
with:
path: |
~/.m2
!~/.m2/repository/org/folio/mod-record-specifications
key: mod-record-specifications-${{ hashFiles('**/pom.xml') }}
restore-keys: mod-record-specifications-
- run: mvn -B clean install -DskipTests
- uses: actions/upload-artifact@v4
with:
name: mod-record-specifications
path: ~/.m2/repository/org/folio/mod-record-specifications
if-no-files-found: error
retention-days: 1
mod-quick-marc:
needs: mod-record-specifications
runs-on: ubuntu-latest
strategy:
fail-fast: false
timeout-minutes: 20
steps:
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- run: git clone --depth 1 --recurse-submodules https://github.com/folio-org/mod-quick-marc
- uses: actions/cache@v2
with:
path: |
~/.m2
!~/.m2/repository/org/folio/mod-record-specifications
key: mod-quick-marc-${{ hashFiles('**/pom.xml') }}
restore-keys: mod-quick-marc-
- uses: actions/download-artifact@v4
with:
name: mod-record-specifications
path: ~/.m2/repository/org/folio/mod-record-specifications
- run: cd mod-quick-marc; mvn -B clean verify