-
Notifications
You must be signed in to change notification settings - Fork 283
72 lines (60 loc) · 1.94 KB
/
pull-request.yaml
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
name: Pull Requests
on:
pull_request:
branches:
- '1.12.x-jetty12'
env:
GOLANG_VERSION: 1.22
NODEJS_VERSION: 18
JAVA_VERSION_FULL_BUILD: 17
JAVA_VERSION_CLIENT_BUILD: 11
JAVA_DISTRO: temurin
JAVA_ARCH: x64
jobs:
full-build:
runs-on: ubuntu-latest-4-cores
steps:
- name: Checkout repository
id: checkout
uses: actions/checkout@v4
- name: Setup Golang
id: setup-go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Setup Node
id: setup-node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODEJS_VERSION }}
- name: Setup Java
id: setup-java
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION_FULL_BUILD }}
distribution: ${{ env.JAVA_DISTRO }}
architecture: ${{ env.JAVA_ARCH }}
- name: Setup ZMS DB Schema file
run: cp servers/zms/schema/zms_server.sql servers/zms/src/test/resources/mysql
- name: Build Athenz
run: mvn -B install
client-build:
runs-on: ubuntu-latest-4-cores
steps:
- name: Checkout repository
id: checkout
uses: actions/checkout@v4
- name: Setup Golang
id: setup-go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Setup Java
id: setup-java
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION_CLIENT_BUILD }}
distribution: ${{ env.JAVA_DISTRO }}
architecture: ${{ env.JAVA_ARCH }}
- name: Build Athenz Clients
run: mvn -B -pl rdl/rdl-gen-athenz-java-model,rdl/rdl-gen-athenz-java-client,core/zms,core/zts,core/msd,libs/java/auth_core,libs/java/client_common,libs/java/cert_refresher,clients/java/zms,clients/java/zts,clients/java/zpe,clients/java/msd,libs/java/gcp_zts_creds install