This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (71 loc) · 2.23 KB
/
maven.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
name: Java CI with Maven
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
- os: ubuntu-latest
- os: windows-latest
steps:
- name: Setup / Checkout
uses: actions/checkout@v2
- name: Setup / Maven
uses: stCarolas/setup-maven@v4
with:
maven-version: 3.6.3
- name: Setup / JDK
uses: actions/setup-java@v1
with:
java-version: 13
- name: settings.xml
uses: whelk-io/maven-settings-xml-action@v9
with:
servers: >
[{
"id": "default",
"username": "${{ secrets.nexus_user }}",
"password": "${{ secrets.nexus_password }}"
},
{
"id": "snapshots",
"username": "${{ secrets.nexus_user }}",
"password": "${{ secrets.nexus_password }}"
}]
repositories: >
[{
"id": "default",
"name": "default",
"url": "https://nexus.adito.cloud/repository/public/",
"releases": { "enabled": "true" }
},
{
"id": "snapshots",
"name": "snapshots",
"url": "https://nexus.adito.cloud/repository/snapshots/",
"snapshots": { "enabled": "true", "updatePolicy": "always" }
}]
plugin_repositories: >
[{
"id": "default",
"url": "https://nexus.adito.cloud/repository/public/",
"releases": { "enabled": "true" },
"snapshots": { "enabled": "true", "updatePolicy": "always" }
}]
- name: Restore Maven cache
uses: skjolber/maven-cache-github-action@v1
with:
step: restore
- name: Maven / Compile
run: mvn --batch-mode install -U -T 1C "-Dmaven.javadoc.skip=true"
- name: Maven / Integration Test
run: mvn --batch-mode test-compile failsafe:integration-test failsafe:verify
- name: Save Maven cache
uses: skjolber/maven-cache-github-action@v1
with:
step: save