From 224250ee862544ce460dc325c0964f0ecab8be60 Mon Sep 17 00:00:00 2001 From: Bartlomiej Gmerek <42570669+Gmerold@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:59:55 +0100 Subject: [PATCH] chore: Configures renovate to cover v1.5; adds v1.5 scheduled CI runs (#271) --- .github/renovate.json5 | 9 ++++ .github/workflows/1_5_scheduled_runs.yaml | 57 +++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .github/workflows/1_5_scheduled_runs.yaml diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 18ee18c..423b445 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -20,15 +20,24 @@ "packageRules": [ // Later rules override earlier rules { + "matchBaseBranches": ["main", "v*"], "matchManagers": ["pep621"], "rangeStrategy": "bump", "groupName": "Python dependencies" }, { + // Bumping "pytest-asyncio" over 0.23 breaks the integration tests + "matchPackageNames": ["pytest-asyncio"], + "matchUpdateTypes": ["minor"], + "enabled": false + }, + { + "matchBaseBranches": ["main", "v*"], "matchManagers": ["github-actions"], "groupName": "GitHub actions" }, { + "matchBaseBranches": ["main", "v*"], "matchManagers": ["terraform"], "groupName": "Terraform" }, diff --git a/.github/workflows/1_5_scheduled_runs.yaml b/.github/workflows/1_5_scheduled_runs.yaml new file mode 100644 index 0000000..0beae32 --- /dev/null +++ b/.github/workflows/1_5_scheduled_runs.yaml @@ -0,0 +1,57 @@ +name: Release 1.5 scheduled CI + +on: + schedule: + - cron: '0 6 * * 0' + +jobs: + codeql: + name: CodeQL Analysis + uses: canonical/sdcore-github-workflows/.github/workflows/codeql-analysis.yml@v2.2.0 + with: + branch-name: "v1.5" + + lint-report: + uses: canonical/sdcore-github-workflows/.github/workflows/lint-report.yaml@v2.2.0 + with: + branch-name: "v1.5" + + terraform-check: + uses: canonical/sdcore-github-workflows/.github/workflows/terraform.yaml@v2.2.0 + with: + branch-name: "v1.5" + + static-analysis: + uses: canonical/sdcore-github-workflows/.github/workflows/static-analysis.yaml@v2.2.0 + with: + branch-name: "v1.5" + + unit-tests-with-coverage: + uses: canonical/sdcore-github-workflows/.github/workflows/unit-test.yaml@v2.2.0 + with: + branch-name: "v1.5" + + build: + needs: + - lint-report + - static-analysis + - unit-tests-with-coverage + uses: canonical/sdcore-github-workflows/.github/workflows/build.yaml@v2.2.0 + with: + branch-name: "v1.5" + secrets: inherit + + integration-test: + needs: + - build + uses: canonical/sdcore-github-workflows/.github/workflows/integration-test.yaml@v2.2.0 + with: + branch-name: "v1.5" + enable-metallb: true + + update-lib: + name: Check libraries + uses: canonical/sdcore-github-workflows/.github/workflows/update-libs.yaml@v2.2.0 + with: + branch-name: "v1.5" + secrets: inherit