-
Notifications
You must be signed in to change notification settings - Fork 20
93 lines (84 loc) · 2.08 KB
/
build-pr.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Build PR
on:
pull_request:
branches:
- main
paths-ignore:
- 'LICENSE'
- '**/.gitignore'
- '**.md'
- '**.adoc'
- '*.txt'
- 'etc/kubernetes/manifests/**'
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
env:
LANG: en_US.UTF-8
MAVEN_ARGS: -V -ntp -Dhttp.keepAlive=false -e
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Project'
uses: actions/checkout@v3
- name: 'Set up JDK 11'
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
server-id: github
- name: "Build"
run: |
./mvnw ${MAVEN_ARGS} clean install -Pskip-it -Psourcecheck
- name: "Tar Maven Repo"
shell: bash
run: |
tar -czf ${{ runner.temp }}/maven-repo.tgz -C ~ .m2/repository
ls -lh ${{ runner.temp }}/maven-repo.tgz
df -h /
- name: "Persist Maven Repo"
uses: actions/upload-artifact@v3
with:
name: maven-repo-${{ github.run_id }}
path: ${{ runner.temp }}/maven-repo.tgz
retention-days: 1
sync-it:
needs:
- build
uses: ./.github/workflows/build-it.yaml
with:
module: "cos-fleetshard-sync-it"
kubeVersion: 'v1.25.3'
operator-it:
needs:
- build
uses: ./.github/workflows/build-it.yaml
with:
module: "cos-fleetshard-operator-it"
kubeVersion: 'v1.25.3'
operator-camel-it:
needs:
- build
uses: ./.github/workflows/build-it.yaml
with:
module: "cos-fleetshard-operator-camel-it"
kubeVersion: 'v1.25.3'
operator-debezium-it:
needs:
- build
uses: ./.github/workflows/build-it.yaml
with:
module: "cos-fleetshard-operator-debezium-it"
kubeVersion: 'v1.25.3'
e2e-install:
needs:
- sync-it
- operator-it
- operator-camel-it
- operator-debezium-it
uses: ./.github/workflows/build-e2e.yaml
with:
feature: 'Install'
kubeVersion: 'v1.25.3'