-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.27 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
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
services:
redis:
image: redis:6
ports:
- 46380:6379
steps:
- name: Checkout boxc repository
uses: actions/checkout@v2
with:
repository: UNC-Libraries/Carolina-Digital-Repository.git
path: boxc
ref: main
- name: Checkout submodules
run: git submodule update --init --recursive
working-directory: boxc
- name: Checkout cdm2bxc repository
uses: actions/checkout@v2
with:
path: cdm2bxc
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build boxc with Maven
run: mvn -B -U clean install -DskipTests -am -pl deposit-utils,operations
working-directory: boxc
- name: Build cdm2bxc
run: mvn -B -U clean install
working-directory: cdm2bxc