Skip to content

Commit 9c63753

Browse files
refactor: update soak workflow with duration input and move E2E tests to run after Docker build
1 parent fe11524 commit 9c63753

2 files changed

Lines changed: 27 additions & 22 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -66,31 +66,10 @@ jobs:
6666
- name: Template Helm Chart
6767
run: helm template test charts/agentrax/ --debug
6868

69-
e2e:
70-
name: End-to-End Tests (kind)
71-
runs-on: ubuntu-latest
72-
needs: [lint, test, helm-lint]
73-
steps:
74-
- uses: actions/checkout@v4
75-
76-
- name: Set up Go
77-
uses: actions/setup-go@v5
78-
with:
79-
go-version: "1.23"
80-
cache: true
81-
82-
- name: Create kind Cluster
83-
uses: helm/kind-action@v1.10.0
84-
with:
85-
cluster_name: agentrax-e2e
86-
87-
- name: Run E2E Tests
88-
run: make test-e2e
89-
9069
build:
9170
name: Docker Build
9271
runs-on: ubuntu-latest
93-
needs: [lint, test, helm-lint, e2e]
72+
needs: [lint, test, helm-lint]
9473
steps:
9574
- uses: actions/checkout@v4
9675

@@ -109,3 +88,27 @@ jobs:
10988
tags: ghcr.io/gitcommitankit/agentrax:${{ github.sha }}
11089
cache-from: type=gha
11190
cache-to: type=gha,mode=max
91+
92+
e2e:
93+
name: End-to-End Tests (kind)
94+
runs-on: ubuntu-latest
95+
needs: [build]
96+
steps:
97+
- uses: actions/checkout@v4
98+
99+
- name: Set up Go
100+
uses: actions/setup-go@v5
101+
with:
102+
go-version: "1.23"
103+
cache: true
104+
105+
- name: Create kind Cluster
106+
uses: helm/kind-action@v1.10.0
107+
with:
108+
cluster_name: agentrax-e2e
109+
110+
- name: Install cluster dependencies
111+
run: make deploy-deps
112+
113+
- name: Run E2E Tests
114+
run: make test-e2e

‎.github/workflows/soak.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ jobs:
3131

3232
- name: Run Autoscaling Soak Suite
3333
run: make test-e2e-soak
34+
env:
35+
SOAK_DURATION_MINUTES: ${{ github.event.inputs.soak_duration_minutes }}

0 commit comments

Comments
 (0)