Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer committed Sep 23, 2023
1 parent 7e44f30 commit cbf2273
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 22 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '24 4 * * 5'
# push:
# branches: [ master ]
# pull_request:
# # The branches below must be a subset of the branches above
# branches: [ master ]
# schedule:
# - cron: '24 4 * * 5'

jobs:
analyze:
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
config: "./kind-config.yaml"
config: "./tests/_config/kind-config.yaml"

- name: Extract and encode kubeconfig from kind
run: |
Expand All @@ -31,11 +31,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build multi-arch image
- name: Build image
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/arm64,linux/amd64
platforms: linux/amd64
push: false
tags: ${{ env.ImageName }}:${{ env.ImageTag }}

Expand All @@ -51,7 +51,11 @@ jobs:
helm install --create-namespace --namespace=ot-container redis-operator ot-helm/redis-operator \
--set redisOperator.imageName=${{ env.ImageName }} \
--set redisOperator.imageTag=${{ env.ImageTag }} \
--set redisOperator.imagePullPolicy=Never
--set redisOperator.imagePullPolicy=Never --wait --timeout 5m
- name: Show Pods - DEBUG
run: |
kubectl get pods -n ot-container
- name: Install kuttl
run: |
Expand All @@ -60,4 +64,4 @@ jobs:
- name: Run e2e test
run: |
kuttl test
kuttl test --config ./tests/_config/kuttl-test.yaml
12 changes: 6 additions & 6 deletions .github/workflows/operator-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
# pull_request:
# branches:
# - master
# push:
# branches:
# - master

env:
GolangVersion: 1.17
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-images.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Release container images

on:
pull_request:
types: [closed]
branches:
- master
# pull_request:
# types: [closed]
# branches:
# - master

env:
ApplicationName: redis-operator
Expand Down
2 changes: 2 additions & 0 deletions tests/_config/kuttl-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ startKIND: false
kindConfig: "./kind-config.yaml"
parallel: 1
timeout: 300
testDirs:
- ./tests/e2e
suppress :
- events

0 comments on commit cbf2273

Please sign in to comment.