diff --git a/.github/workflows/api_server.yml b/.github/workflows/api_server.yml index 95e0870ffe..42ad34f21c 100644 --- a/.github/workflows/api_server.yml +++ b/.github/workflows/api_server.yml @@ -1,3 +1,4 @@ +--- name: API-server on: [push] diff --git a/.github/workflows/application-tests-quality.yml b/.github/workflows/application-tests-quality.yml index 38441851cf..cfde54eab5 100644 --- a/.github/workflows/application-tests-quality.yml +++ b/.github/workflows/application-tests-quality.yml @@ -1,3 +1,4 @@ +--- name: Application tests quality on: [push] diff --git a/.github/workflows/application-tests.yml b/.github/workflows/application-tests.yml index ee13f3686d..69563dcbc0 100644 --- a/.github/workflows/application-tests.yml +++ b/.github/workflows/application-tests.yml @@ -1,3 +1,4 @@ +--- name: Application tests on: [push] diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c958534ecf..eb51a454b0 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,14 +1,4 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# +--- name: "CodeQL" on: diff --git a/.github/workflows/collector.yml b/.github/workflows/collector.yml index d57bb2fb82..3a2249e7ed 100644 --- a/.github/workflows/collector.yml +++ b/.github/workflows/collector.yml @@ -1,3 +1,4 @@ +--- name: Collector on: [push] diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 59b0d65d08..53a016bb75 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,3 +1,4 @@ +--- name: Documentation on: [push] diff --git a/.github/workflows/feature-tests-quality.yml b/.github/workflows/feature-tests-quality.yml index 557e81e641..8f09ad365a 100644 --- a/.github/workflows/feature-tests-quality.yml +++ b/.github/workflows/feature-tests-quality.yml @@ -1,3 +1,4 @@ +--- name: Feature tests quality on: [push] diff --git a/.github/workflows/feature-tests.yml b/.github/workflows/feature-tests.yml index e4bd521ebf..0f48f8a632 100644 --- a/.github/workflows/feature-tests.yml +++ b/.github/workflows/feature-tests.yml @@ -1,3 +1,4 @@ +--- name: Feature tests on: [push] diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 600cac3253..61e38ff13d 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -1,3 +1,4 @@ +--- name: Frontend on: [push] diff --git a/.github/workflows/hadolint.yml b/.github/workflows/hadolint.yml index 725b2066fd..07107b37cb 100644 --- a/.github/workflows/hadolint.yml +++ b/.github/workflows/hadolint.yml @@ -1,3 +1,4 @@ +--- name: Hadolint on: [push] diff --git a/.github/workflows/helm-chart.yml b/.github/workflows/helm-chart.yml new file mode 100644 index 0000000000..dfe62c8c71 --- /dev/null +++ b/.github/workflows/helm-chart.yml @@ -0,0 +1,45 @@ +--- +name: Helm Chart CI + +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4.1.7 + + - name: Set yaml value change dict with random generated secrets + run: | + echo "VALUE_CHANGES={\"[0].data.DATABASE_USERNAME\":\"$(echo ${RANDOM} | base64)\",\"[0].data.DATABASE_PASSWORD\":\"$(echo ${RANDOM} | base64)\",\"[1].data.LDAP_LOOKUP_USER_PASSWORD\":\"$(echo ${RANDOM} | base64)\"}" >> $GITHUB_ENV + + - name: Update values.yaml + uses: fjogeleit/yaml-update-action@v0.15.0 + with: + valueFile: "helm/deploy-ci.yaml" + commitChange: false + changes: ${{ env.VALUE_CHANGES }} + + - name: Start minikube + uses: medyagh/setup-minikube@v0.0.18 + with: + driver: docker + container-runtime: containerd + minikube-version: latest + kubernetes-version: stable + timeout-minutes: 2 + + - name: Build and run chart + run: | + eval $(minikube -p minikube docker-env) + kubectl apply -f helm/deploy-ci.yaml + helm dependency build helm + helm upgrade --install --render-subchart-notes quality-time helm + kubectl wait --all pods --timeout=2m --for=condition=Ready + kubectl wait --all deployments --timeout=30s --for=condition=Available + timeout-minutes: 3 diff --git a/.github/workflows/notifier.yml b/.github/workflows/notifier.yml index 14880b47bf..59b43fb84c 100644 --- a/.github/workflows/notifier.yml +++ b/.github/workflows/notifier.yml @@ -1,3 +1,4 @@ +--- name: Notifier on: [push] diff --git a/.github/workflows/release-quality.yml b/.github/workflows/release-quality.yml index 2d673844e1..c9f8d5c22a 100644 --- a/.github/workflows/release-quality.yml +++ b/.github/workflows/release-quality.yml @@ -1,3 +1,4 @@ +--- name: Release script quality on: [push] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 97efb18904..047f4e4871 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,4 @@ +--- name: Release on: diff --git a/.github/workflows/shared_code.yml b/.github/workflows/shared_code.yml index c20652a8c9..5779bf2619 100644 --- a/.github/workflows/shared_code.yml +++ b/.github/workflows/shared_code.yml @@ -1,3 +1,4 @@ +--- name: Shared Code on: [push] diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 009c4094b9..1f596562b7 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -1,3 +1,4 @@ +--- name: SonarCloud on: diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index 729907db8e..1575d6be53 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -1,3 +1,4 @@ +--- name: Trivy on: push: diff --git a/helm/deploy-ci.yaml b/helm/deploy-ci.yaml new file mode 100644 index 0000000000..684ad4b877 --- /dev/null +++ b/helm/deploy-ci.yaml @@ -0,0 +1,23 @@ +--- +apiVersion: v1 +kind: Secret +metadata: + name: quality-time-db-secret + labels: + app.kubernetes.io/name: quality-time + app.kubernetes.io/instance: quality-time +data: + DATABASE_USERNAME: "" + DATABASE_PASSWORD: "" +type: Opaque +--- +apiVersion: v1 +kind: Secret +metadata: + name: quality-time-ldap-secret + labels: + app.kubernetes.io/name: quality-time + app.kubernetes.io/instance: quality-time +data: + LDAP_LOOKUP_USER_PASSWORD: "" +type: Opaque