-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (50 loc) · 1.3 KB
/
e2e.yml
File metadata and controls
60 lines (50 loc) · 1.3 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: E2E Tests
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
schedule:
# Run nightly at 3 AM UTC
- cron: '0 3 * * *'
workflow_dispatch: # Allow manual triggering
jobs:
e2e:
name: E2E Tests
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
cache-dependency-path: go.sum
- name: Install Kind
run: |
go install sigs.k8s.io/kind@latest
kind version
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
kubectl version --client
- name: Download dependencies
run: go mod download
- name: Build scheduler binary
run: make build
- name: Run E2E tests
run: make test-e2e
timeout-minutes: 30
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-test-results
path: |
**/e2e-test-*.log
**/e2e-test-*.xml
retention-days: 7