forked from opendatahub-io/llm-d-batch-gateway-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.29 KB
/
Copy pathci-integration-tests.yml
File metadata and controls
60 lines (50 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Integration Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
paths:
- '.github/**'
- 'cmd/**'
- 'api/**'
- 'internal/**'
- 'config/**'
- 'hack/**'
- 'test/**'
- 'Dockerfile'
- 'go.mod'
- 'go.sum'
- 'Makefile'
env:
OPERATOR_IMG: "localhost/batch-gateway-operator:ci"
KIND_CLUSTER_NAME: "batch-gateway-ci"
jobs:
integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install Kind
run: go install sigs.k8s.io/kind@latest
- name: Install Helm
uses: azure/setup-helm@v4
- name: Deploy dev environment
run: make dev-deploy
env:
OPERATOR_IMG: ${{ env.OPERATOR_IMG }}
KIND_CLUSTER_NAME: ${{ env.KIND_CLUSTER_NAME }}
- name: Run batch-gateway e2e tests
run: make test-e2e-batch-gateway
env:
TEST_APISERVER_URL: "http://localhost:8000"
- name: Run operator e2e tests
run: make test-e2e-operator
- name: Cleanup
if: always()
run: kind delete cluster --name ${{ env.KIND_CLUSTER_NAME }}