-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 1.44 KB
/
on-pull-request.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
name: Build and check doc generation
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources 🔰
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up Java 11 ☕♨️
uses: actions/[email protected]
with:
distribution: temurin
java-version: 11
java-package: jdk
architecture: x64
- name: Handle caching of maven repository 💾
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Create maven settings.xml with credentials 📜+🔧+🔒
uses: whelk-io/maven-settings-xml-action@v22
with:
servers: '[
{ "id": "nexus.terrestris.de", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" },
{ "id": "nexus.terrestris.de-geoserver-extras", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" },
{ "id": "nexus.terrestris.de-snapshots-geoserver-extras", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" }
]'
- name: Clean and build project 🧽 + 🏗️
run: mvn -B install
- name: Build documentation 📖
run: mvn -B -P reporting surefire-report:report site