Skip to content

Commit b7ac8da

Browse files
committed
Run tests with different release name and namespace
1 parent 2ea14f4 commit b7ac8da

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ name: End-to-end test
22

33
on:
44
push:
5-
paths:
6-
- .github/**
75
schedule:
86
- cron: '0 4,16 * * *'
97
workflow_dispatch:
108

119
jobs:
1210
test-last-release:
1311
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
release-name: [betterstack-logs, vector]
15+
install-args: ["", "--namespace monitoring"]
16+
fail-fast: false
1417
steps:
1518
- name: Checkout
1619
uses: actions/checkout@v3
@@ -28,7 +31,7 @@ jobs:
2831
- name: 2. Set up Helm chart
2932
run: sed 's/$SOURCE_TOKEN/${{ secrets.HELM_E2E_TEST_SOURCE_TOKEN }}/g' .github/helm-values-template.yaml > values.yaml
3033
- name: 3. Deploy the chart
31-
run: helm install betterstack-logs betterstack-logs/betterstack-logs -f values.yaml
34+
run: helm install ${{ matrix.release-name }} betterstack-logs/betterstack-logs -f values.yaml ${{ matrix.install-args }}
3235

3336
- name: List the used Helm release version
3437
run: helm list
@@ -53,4 +56,3 @@ jobs:
5356

5457
- name: Check if all pods are running
5558
run: kubectl get pods -A -o jsonpath='{range .items[*]}{.status.phase}{"\n"}{end}' | grep -qv "^Running$" && echo "Not all pods are running" && exit 1 || echo "OK"
56-

0 commit comments

Comments
 (0)