Skip to content

Commit

Permalink
.github/workflows: create another workflow for testing charts
Browse files Browse the repository at this point in the history
  • Loading branch information
datdao committed Feb 5, 2024
1 parent e573477 commit 4b8c25a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 24 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/integration-chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2023 The Atlas Operator Authors.
#
# Licensed 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: Integration Tests (Charts)
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
helm-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: start minikube
id: minikube
uses: medyagh/setup-minikube@master
- uses: azure/setup-helm@v1
- name: install atlas-operator
run: |
helm install atlas-operator charts/atlas-operator --wait --set image.pullPolicy=Always
- name: apply test resources
run: |
kubectl apply -k config/integration
- name: wait for test resources
run: |
if ! kubectl wait --for=condition=ready --timeout=120s atlasschemas --all; then
kubectl describe atlasschemas
kubectl describe pods -l atlasgo.io/engine=postgres
kubectl describe pods -l atlasgo.io/engine=mysql
kubectl describe deployments
exit 1
fi
24 changes: 0 additions & 24 deletions .github/workflows/push-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,7 @@ on:
- master
workflow_dispatch:
jobs:
helm-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: start minikube
id: minikube
uses: medyagh/setup-minikube@master
- uses: azure/setup-helm@v1
- name: install atlas-operator
run: |
helm install atlas-operator charts/atlas-operator --wait --set image.pullPolicy=Always
- name: apply test resources
run: |
kubectl apply -k config/integration
- name: wait for test resources
run: |
if ! kubectl wait --for=condition=ready --timeout=120s atlasschemas --all; then
kubectl describe atlasschemas
kubectl describe pods -l atlasgo.io/engine=postgres
kubectl describe pods -l atlasgo.io/engine=mysql
kubectl describe deployments
exit 1
fi
helm-push:
needs: [helm-test]
runs-on: ubuntu-latest
defaults:
run:
Expand Down

0 comments on commit 4b8c25a

Please sign in to comment.