forked from odpi/egeria
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.1 KB
/
pr-maven-latest.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
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the ODPi Egeria project.
name: "Maven - latest release"
on:
pull_request:
branches: [master, feature-*, egeria-release-*]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: "Maven - latest release"
if: startsWith(github.repository,'odpi/')
steps:
- uses: actions/checkout@v2
name: Checkout
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Cache Maven packages
uses: actions/cache@v3.0.3
with:
path: ~/.m2
key: ${{ runner.os }}-maven-java11-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-javalatest
- name: Build with Maven
run: mvn -B -DargLine="-XX:+TieredCompilation -XX:TieredStopAtLevel=1" clean verify --file pom.xml
- name: Upload assemblies
uses: actions/upload-artifact@v3
with:
name: Assemblies
path: open-metadata-distribution/open-metadata-assemblies/target/*.gz