Skip to content

Commit

Permalink
test: add test strategy for redis version (#1067)
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer authored Sep 16, 2024
1 parent 64d7204 commit f48930c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ jobs:
needs: [validate_yaml]
name: E2E Test
runs-on: ubuntu-latest

strategy:
matrix:
redis-version: ["v7.0.15"]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -247,5 +249,10 @@ jobs:
run: |
kubectl wait --for=condition=available --timeout=300s deployment/redis-operator-redis-operator -n redis-operator-system
- name: Replace Redis Image Version
run: |
find ./tests/e2e-chainsaw/v1beta2/ -type f -exec gsed -i 's/quay.io\/opstree\/redis:latest/quay.io\/opstree\/redis:${{ matrix.redis-version }}/g' {} \;
find ./tests/e2e-chainsaw/v1beta2/ -type f -exec gsed -i 's/quay.io\/opstree\/redis-sentinel:latest/quay.io\/opstree\/redis-sentinel:${{ matrix.redis-version }}/g' {} \;
- name: Run chainsaw test
run: chainsaw test --test-dir ./tests/e2e-chainsaw/v1beta2/ --config tests/_config/chainsaw-configuration.yaml

0 comments on commit f48930c

Please sign in to comment.