From 160091df5c219f5b726e4648d747f76027a30a5d Mon Sep 17 00:00:00 2001 From: Pasquale Congiusti Date: Thu, 23 Feb 2023 18:06:08 +0100 Subject: [PATCH] chore: move native checks as nightly process --- .github/workflows/native.yml | 13 +-- ...ates.yml => nightly-automatic-updates.yml} | 4 +- .github/workflows/nightly-native-test.yml | 94 +++++++++++++++++++ .../{release.yml => nightly-release.yml} | 4 +- 4 files changed, 99 insertions(+), 16 deletions(-) rename .github/workflows/{automatic-updates.yml => nightly-automatic-updates.yml} (97%) create mode 100644 .github/workflows/nightly-native-test.yml rename .github/workflows/{release.yml => nightly-release.yml} (98%) diff --git a/.github/workflows/native.yml b/.github/workflows/native.yml index a7040cfc7f..3888ec2825 100644 --- a/.github/workflows/native.yml +++ b/.github/workflows/native.yml @@ -38,18 +38,7 @@ on: - 'KEYS' - 'LICENSE' - 'NOTICE' - push: - branches: - - main - - "release-*" - paths-ignore: - - 'docs/**' - - 'proposals/**' - - '**.adoc' - - '**.md' - - 'KEYS' - - 'LICENSE' - - 'NOTICE' + workflow_dispatch: inputs: log-level: diff --git a/.github/workflows/automatic-updates.yml b/.github/workflows/nightly-automatic-updates.yml similarity index 97% rename from .github/workflows/automatic-updates.yml rename to .github/workflows/nightly-automatic-updates.yml index 766caa3e11..ebd92a23af 100644 --- a/.github/workflows/automatic-updates.yml +++ b/.github/workflows/nightly-automatic-updates.yml @@ -15,11 +15,11 @@ # limitations under the License. # --------------------------------------------------------------------------- -name: Automatic Updates +name: Nightly automatic updates on: schedule: - - cron: '30 0 * * *' + - cron: '30 23 * * *' workflow_dispatch: jobs: diff --git a/.github/workflows/nightly-native-test.yml b/.github/workflows/nightly-native-test.yml new file mode 100644 index 0000000000..5f46f97bd8 --- /dev/null +++ b/.github/workflows/nightly-native-test.yml @@ -0,0 +1,94 @@ +# --------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# --------------------------------------------------------------------------- + +name: Nightly Quarkus native checks + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +on: + schedule: + - cron: '45 3 * * *' + workflow_dispatch: + +jobs: + main: + if: github.repository == 'apache/camel-k' + runs-on: ubuntu-20.04 + name: Generate changelog for main branch + steps: + - name: "Checkout code" + uses: actions/checkout@v2 + with: + ref: main + persist-credentials: false + submodules: recursive + - name: Higher mem native smoke tests + uses: ./.github/actions/e2e-install-native + with: + cluster-config-data: ${{ secrets.E2E_CLUSTER_CONFIG }} + cluster-kube-config-data: ${{ secrets.E2E_KUBE_CONFIG }} + high-memory: 'true' + - name: Lower mem native smoke tests + uses: ./.github/actions/e2e-install-native + with: + cluster-config-data: ${{ secrets.E2E_CLUSTER_CONFIG }} + cluster-kube-config-data: ${{ secrets.E2E_KUBE_CONFIG }} + + v1_10_x: + if: github.repository == 'apache/camel-k' + runs-on: ubuntu-20.04 + steps: + - name: "Checkout code" + uses: actions/checkout@v2 + with: + ref: release-1.10.x + persist-credentials: false + submodules: recursive + - name: Higher mem native smoke tests + uses: ./.github/actions/e2e-install-native + with: + cluster-config-data: ${{ secrets.E2E_CLUSTER_CONFIG }} + cluster-kube-config-data: ${{ secrets.E2E_KUBE_CONFIG }} + high-memory: 'true' + - name: Lower mem native smoke tests + uses: ./.github/actions/e2e-install-native + with: + cluster-config-data: ${{ secrets.E2E_CLUSTER_CONFIG }} + cluster-kube-config-data: ${{ secrets.E2E_KUBE_CONFIG }} + + v1_11_x: + if: github.repository == 'apache/camel-k' + runs-on: ubuntu-20.04 + steps: + - name: "Checkout code" + uses: actions/checkout@v2 + with: + ref: release-1.11.x + persist-credentials: false + submodules: recursive + - name: Higher mem native smoke tests + uses: ./.github/actions/e2e-install-native + with: + cluster-config-data: ${{ secrets.E2E_CLUSTER_CONFIG }} + cluster-kube-config-data: ${{ secrets.E2E_KUBE_CONFIG }} + high-memory: 'true' + - name: Lower mem native smoke tests + uses: ./.github/actions/e2e-install-native + with: + cluster-config-data: ${{ secrets.E2E_CLUSTER_CONFIG }} + cluster-kube-config-data: ${{ secrets.E2E_KUBE_CONFIG }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/nightly-release.yml similarity index 98% rename from .github/workflows/release.yml rename to .github/workflows/nightly-release.yml index 9d6cee149a..186fc2e08d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/nightly-release.yml @@ -15,7 +15,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -name: release +name: Nightly release env: TEST_CLUSTER: kind @@ -25,7 +25,7 @@ env: on: schedule: - - cron: "10 23 * * *" + - cron: "15 0 * * *" workflow_dispatch: jobs: