-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (45 loc) · 1.22 KB
/
pr-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
52
53
54
55
56
57
58
name: PR Build
# PR build
on:
pull_request:
branches: [ main ]
workflow_dispatch:
# just runs Maven and Docker build
jobs:
build:
name: "Install software"
runs-on: [self-hosted, linux, X64]
steps:
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.2
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
- run: mvn --version
- name: Build with Maven
run: mvn clean -B package --settings .github/workflows/settings.xml --file pom.xml
env:
CI: false
PRIVATE_REPO_USERNAME: ${{ vars.PRIVATE_REPO_USERNAME }}
MAVEN_REPO_READ: ${{ secrets.MAVEN_REPO_READ }}
checks:
name: "Checks"
needs: build
runs-on: [self-hosted, linux, X64]
steps:
- name: get helm
uses: azure/setup-helm@v4
- name: run helm dependency update
working-directory: application/target/helm/observatory
run: helm dep update
- name: run helm template
working-directory: application/target/helm
run: helm template observatory