diff --git a/.github/workflows/fabric8-next-version-schedule.yml b/.github/workflows/fabric8-next-version-schedule.yml new file mode 100644 index 0000000000..e79374c74f --- /dev/null +++ b/.github/workflows/fabric8-next-version-schedule.yml @@ -0,0 +1,68 @@ +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@v4 + with: + ref: 'fabric8-next-version' + - name: Set up Java and Maven + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + cache: 'maven' + - name: Run unit tests + run: ./mvnw ${MAVEN_ARGS} clean install --file pom.xml + + integration_tests: + strategy: + matrix: + java: [ 11, 17 ] + kubernetes: [ 'v1.26.13', 'v1.27.10', 'v1.28.6', 'v1.29.1' ] + 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.29.1' + http-client: ${{ matrix.httpclient }} + experimental: true + checkout-ref: 'fabric8-next-version' + + special_integration_tests: + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 11, 17 ] + steps: + - uses: actions/checkout@v4 + with: + ref: 'fabric8-next-version' + - name: Set up Java and Maven + uses: actions/setup-java@v4 + 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 \ No newline at end of file diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index d2240a8561..79c77a6c98 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -17,6 +17,10 @@ on: type: boolean required: false default: false + checkout-ref: + type: string + required: false + default: '' jobs: integration_tests: @@ -27,6 +31,8 @@ jobs: - name: Output test information run: echo "Running ITs with ${{ inputs.http-client }}, ${{ inputs.kube-version }}, ${{ inputs.java-version }}" - uses: actions/checkout@v4 + with: + ref: ${{ inputs.checkout-ref }} - name: Set up Java and Maven uses: actions/setup-java@v4 with: