-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: run builds daily fabric8 latest snapshot release
Signed-off-by: Chris Laprun <[email protected]>
- Loading branch information
Showing
2 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Verify Pull Request | ||
|
||
env: | ||
MAVEN_ARGS: -V -ntp -e | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
on: | ||
schedule: | ||
# Run on end of the day | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
jobs: | ||
check_format_and_unit_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: fabric8-next-version | ||
- name: Set up Java and Maven | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
cache: 'maven' | ||
- name: Check code format | ||
run: | | ||
./mvnw ${MAVEN_ARGS} formatter:validate -Dconfigfile=$PWD/contributing/eclipse-google-style.xml -pl '!operator-framework-bom' --file pom.xml | ||
./mvnw ${MAVEN_ARGS} impsort:check -pl '!operator-framework-bom' --file pom.xml | ||
- name: Run unit tests | ||
run: ./mvnw ${MAVEN_ARGS} -B test --file pom.xml | ||
|
||
integration_tests: | ||
strategy: | ||
matrix: | ||
java: [ 11, 17 ] | ||
kubernetes: [ 'v1.23.15', 'v1.24.9', 'v1.25.5' ] | ||
uses: ./.github/workflows/integration-tests.yml | ||
with: | ||
java-version: ${{ matrix.java }} | ||
kube-version: ${{ matrix.kubernetes }} | ||
|
||
httpclient-tests: | ||
strategy: | ||
matrix: | ||
httpclient: [ 'vertx', 'jdk', 'jetty' ] | ||
uses: ./.github/workflows/integration-tests.yml | ||
with: | ||
java-version: 17 | ||
kube-version: 'v1.25.5' | ||
http-client: ${{ matrix.httpclient }} | ||
experimental: true | ||
|
||
special_integration_tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ 11, 17 ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Java and Maven | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: ${{ matrix.java }} | ||
cache: 'maven' | ||
- name: Run Special Integration Tests | ||
run: ./mvnw ${MAVEN_ARGS} -B package -P minimal-watch-timeout-dependent-it --file pom.xml |
47 changes: 47 additions & 0 deletions
47
.github/workflows/snapshot-releases-fabric8-snapshot-daily.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Test & Release Snapshot to Maven Central | ||
|
||
env: | ||
MAVEN_ARGS: -V -ntp -e | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
on: | ||
schedule: | ||
# Run on end of the day | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: fabric8-next-version | ||
- name: Set up Java and Maven | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
cache: 'maven' | ||
- name: Run unit tests | ||
run: ./mvnw ${MAVEN_ARGS} -B test --file pom.xml | ||
release-snapshot: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Java and Maven | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
cache: 'maven' | ||
- name: Release Maven package | ||
uses: samuelmeuli/action-maven-publish@v1 | ||
with: | ||
maven_profiles: "release" | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
nexus_username: ${{ secrets.OSSRH_USERNAME }} | ||
nexus_password: ${{ secrets.OSSRH_TOKEN }} |