Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: unify chart test gha workflows #2254

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/chart-validate.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/test-integration.yaml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/test-unit.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: "Test - Alpha"
on:
pull_request:
paths:
- '.github/workflows/test-alpha.yaml'
- '.github/workflows/test-version-alpha.yaml'
- 'charts/camunda-platform-alpha/**'
workflow_dispatch: { }

Expand Down Expand Up @@ -50,6 +50,7 @@ jobs:
uses: ./.github/workflows/test-integration-template.yaml
with:
identifier: "${{ github.event.pull_request.number }}-intg-alpha"
deployment-ttl: "${{ contains(github.event.pull_request.labels.*.name, 'test-persistent') && '1w' || '' }}"
platforms: "gke,rosa"
flows: "install,upgrade"
camunda-helm-repo: "oci://ghcr.io/camunda/helm/camunda-platform"
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/test-version-latest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Basic test for latest Camunda 8 Helm charts.
name: "Test - Latest"

on:
pull_request:
paths:
- '.github/workflows/test-version-latest.yaml'
- 'charts/camunda-platform-latest/**'
workflow_dispatch: { }

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
CAMUNDA_DISTRO_TEST_DELETE_NAMESPACE: ${{ !secrets.ACTIONS_STEP_DEBUG }}
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
GITHUB_WORKFLOW_RUN_ID: ${{ github.run_id }}
KUBECONFIG: .github/config/kubeconfig

permissions:
contents: read

jobs:
validation:
name: Validation - Camunda Latest
uses: ./.github/workflows/chart-validate-template.yaml
with:
identifier: "${{ github.event.pull_request.number }}-vald-latest"
camunda-helm-dir: "camunda-platform-latest"
camunda-helm-git-ref: "${{ github.event.pull_request.head.sha }}"

unit:
name: Unit Test - Camunda Latest
uses: ./.github/workflows/test-unit-template.yml
with:
identifier: "${{ github.event.pull_request.number }}-unit-latest"
camunda-helm-dir: "camunda-platform-latest"
camunda-helm-git-ref: "${{ github.event.pull_request.head.sha }}"

integration:
name: Integration Test - Camunda Latest
needs: [validation, unit]
permissions:
contents: read
id-token: write
deployments: write
secrets: inherit
uses: ./.github/workflows/test-integration-template.yaml
with:
identifier: "${{ github.event.pull_request.number }}-intg-latest"
deployment-ttl: "${{ contains(github.event.pull_request.labels.*.name, 'test-persistent') && '1w' || '' }}"
platforms: "gke,rosa"
flows: "install,upgrade"
camunda-helm-dir: "camunda-platform-latest"
camunda-helm-git-ref: "${{ github.event.pull_request.head.sha }}"
caller-git-ref: "${{ github.event.pull_request.head.sha }}"
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Basic test for older Camunda 8 Helm charts.
name: "Test - Regression"
# Basic test for maintenance Camunda 8 Helm charts.
name: "Test - Maintenance"

on:
pull_request:
paths:
- '.github/workflows/test-version-maintenance.yaml'
- 'charts/camunda-platform-8*/**'
workflow_dispatch: { }

Expand Down
Loading