Repository navigation
55 lines (49 loc) · 1.76 KB
/
Copy pathbuild_pull_request.yml
File metadata and controls
55 lines (49 loc) · 1.76 KB
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
#
# Copyright (c) 2018-2023 TNO and Contributors to the GitHub community
#
# This program and the accompanying materials are made available
# under the terms of the MIT License which is available at
# https://opensource.org/licenses/MIT
#
# SPDX-License-Identifier: MIT
#
# This workflow will build PPS with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build and Test PPS (Pull Request)
on:
pull_request:
branches: [ "main", "develop" ]
jobs:
build:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: --add-opens java.base/java.lang=ALL-UNNAMED
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Maven Action
uses: s4u/setup-maven-action@v1.18.0
with:
java-version: 21
java-distribution: temurin
- name: Build and Test with Maven
run: mvn verify --batch-mode --update-snapshots --fail-at-end --file pom.xml -Dpps.version.qualifier=$(./versionQualifier.sh)
- name: Attach Test Report
if: success() || failure()
uses: scacap/action-surefire-report@v1
- name: Attach Website
uses: actions/upload-artifact@v7
with:
name: PPS-website
path: releng/nl.esi.pps.website/target/website
retention-days: 5
- name: Attach Update-Site
uses: actions/upload-artifact@v7
with:
name: PPS-update-site
path: products/nl.esi.pps.product/target/repository
retention-days: 5