forked from it-at-m/dave-selfservice-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (66 loc) · 1.96 KB
/
Copy pathpr_build.yaml
File metadata and controls
81 lines (66 loc) · 1.96 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: PR build - compliance check and build test
on:
pull_request:
branches: [sprint,main]
workflow_dispatch:
permissions:
packages: read
contents: read
jobs:
compliance:
runs-on: [self-hosted, linux, X64]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Advance Security Policy as Code
uses: advanced-security/policy-as-code@v2.11.0
continue-on-error: true
with:
policy: GeekMasher/security-queries
policy-path: $GITHUB_WORKSPACE/policies/default.yml
token: ${{ secrets.GITHUB_TOKEN }}
argvs: '--disable-dependabot --disable-secret-scanning --disable-code-scanning'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-maven:
needs: compliance
runs-on: [self-hosted, linux, X64]
steps:
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
distribution: "temurin"
java-version: 25
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.12
- name: setup node
uses: actions/setup-node@v6
with:
node-version: 24
- run: npm --version
- run: node --version
- run: mvn --version
- name: checkout
uses: actions/checkout@v6
with:
fetch-depth: "0"
- name: Build with Maven
run: mvn clean -B install --file pom.xml
env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
check_helm:
name: "Check if Helm chart is correct"
needs: build-maven
runs-on: [self-hosted, linux, X64]
steps:
- name: get helm
uses: azure/setup-helm@v4
- name: run helm dependency update
working-directory: apigateway/target/helm/dave-selfservice
run: helm dep update
- name: run helm template
working-directory: apigateway/target/helm
run: helm template dave-selfservice