Skip to content

Commit 00bff2c

Browse files
committedOct 29, 2024
fix: run builds daily fabric8 latest snapshot release
Signed-off-by: Chris Laprun <[email protected]>
1 parent b4c6e0d commit 00bff2c

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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@v3
19+
with:
20+
ref: fabric8-next-version
21+
- name: Set up Java and Maven
22+
uses: actions/setup-java@v3
23+
with:
24+
distribution: temurin
25+
java-version: 17
26+
cache: 'maven'
27+
- name: Check code format
28+
run: |
29+
./mvnw ${MAVEN_ARGS} formatter:validate -Dconfigfile=$PWD/contributing/eclipse-google-style.xml -pl '!operator-framework-bom' --file pom.xml
30+
./mvnw ${MAVEN_ARGS} impsort:check -pl '!operator-framework-bom' --file pom.xml
31+
- name: Run unit tests
32+
run: ./mvnw ${MAVEN_ARGS} -B test --file pom.xml
33+
34+
integration_tests:
35+
strategy:
36+
matrix:
37+
java: [ 11, 17 ]
38+
kubernetes: [ 'v1.23.15', 'v1.24.9', 'v1.25.5' ]
39+
uses: ./.github/workflows/integration-tests.yml
40+
with:
41+
java-version: ${{ matrix.java }}
42+
kube-version: ${{ matrix.kubernetes }}
43+
44+
httpclient-tests:
45+
strategy:
46+
matrix:
47+
httpclient: [ 'vertx', 'jdk', 'jetty' ]
48+
uses: ./.github/workflows/integration-tests.yml
49+
with:
50+
java-version: 17
51+
kube-version: 'v1.25.5'
52+
http-client: ${{ matrix.httpclient }}
53+
experimental: true
54+
55+
special_integration_tests:
56+
runs-on: ubuntu-latest
57+
strategy:
58+
matrix:
59+
java: [ 11, 17 ]
60+
steps:
61+
- uses: actions/checkout@v3
62+
- name: Set up Java and Maven
63+
uses: actions/setup-java@v3
64+
with:
65+
distribution: temurin
66+
java-version: ${{ matrix.java }}
67+
cache: 'maven'
68+
- name: Run Special Integration Tests
69+
run: ./mvnw ${MAVEN_ARGS} -B package -P minimal-watch-timeout-dependent-it --file pom.xml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test & Release Snapshot to Maven Central
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+
test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
ref: fabric8-next-version
21+
- name: Set up Java and Maven
22+
uses: actions/setup-java@v3
23+
with:
24+
distribution: temurin
25+
java-version: 11
26+
cache: 'maven'
27+
- name: Run unit tests
28+
run: ./mvnw ${MAVEN_ARGS} -B test --file pom.xml
29+
release-snapshot:
30+
runs-on: ubuntu-latest
31+
needs: test
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: Set up Java and Maven
35+
uses: actions/setup-java@v3
36+
with:
37+
distribution: temurin
38+
java-version: 11
39+
cache: 'maven'
40+
- name: Release Maven package
41+
uses: samuelmeuli/action-maven-publish@v1
42+
with:
43+
maven_profiles: "release"
44+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
45+
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
46+
nexus_username: ${{ secrets.OSSRH_USERNAME }}
47+
nexus_password: ${{ secrets.OSSRH_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.