Skip to content

Commit d4f41fd

Browse files
committed
feat: schedule fabric8 client snapshot build
Signed-off-by: Attila Mészáros <csviri@gmail.com>
1 parent 69711cf commit d4f41fd

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Verify Pull Request
2+
3+
env:
4+
MAVEN_ARGS: -V -ntp -e
5+
6+
concurrency:
7+
group: ${{ github.ref }}-${{ github.workflow }}
8+
cancel-in-progress: true
9+
on:
10+
schedule:
11+
# Run on end of the day
12+
- cron: '0 0 * * *'
13+
workflow_dispatch:
14+
jobs:
15+
check_format_and_unit_tests:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: 'fabric8-next-version'
21+
- name: Set up Java and Maven
22+
uses: actions/setup-java@v4
23+
with:
24+
distribution: temurin
25+
java-version: 17
26+
cache: 'maven'
27+
- name: Run unit tests
28+
run: ./mvnw ${MAVEN_ARGS} clean install --file pom.xml
29+
30+
integration_tests:
31+
strategy:
32+
matrix:
33+
java: [ 11, 17 ]
34+
kubernetes: [ 'v1.26.13', 'v1.27.10', 'v1.28.6', 'v1.29.1' ]
35+
uses: ./.github/workflows/integration-tests.yml
36+
with:
37+
java-version: ${{ matrix.java }}
38+
kube-version: ${{ matrix.kubernetes }}
39+
40+
httpclient-tests:
41+
strategy:
42+
matrix:
43+
httpclient: [ 'vertx', 'jdk', 'jetty' ]
44+
uses: ./.github/workflows/integration-tests.yml
45+
with:
46+
java-version: 17
47+
kube-version: 'v1.29.1'
48+
http-client: ${{ matrix.httpclient }}
49+
experimental: true
50+
checkout-ref: 'fabric8-next-version'
51+
52+
special_integration_tests:
53+
runs-on: ubuntu-latest
54+
strategy:
55+
matrix:
56+
java: [ 11, 17 ]
57+
steps:
58+
- uses: actions/checkout@v4
59+
with:
60+
ref: 'fabric8-next-version'
61+
- name: Set up Java and Maven
62+
uses: actions/setup-java@v4
63+
with:
64+
distribution: temurin
65+
java-version: ${{ matrix.java }}
66+
cache: 'maven'
67+
- name: Run Special Integration Tests
68+
run: ./mvnw ${MAVEN_ARGS} -B package -P minimal-watch-timeout-dependent-it --file pom.xml

.github/workflows/integration-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
type: boolean
1818
required: false
1919
default: false
20+
checkout-ref:
21+
type: string
22+
required: false
23+
default: ''
2024

2125
jobs:
2226
integration_tests:
@@ -27,6 +31,8 @@ jobs:
2731
- name: Output test information
2832
run: echo "Running ITs with ${{ inputs.http-client }}, ${{ inputs.kube-version }}, ${{ inputs.java-version }}"
2933
- uses: actions/checkout@v4
34+
with:
35+
ref: ${{ inputs.checkout-ref }}
3036
- name: Set up Java and Maven
3137
uses: actions/setup-java@v4
3238
with:

0 commit comments

Comments
 (0)