-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (58 loc) · 1.6 KB
/
Copy pathe2e-kind.yaml
File metadata and controls
67 lines (58 loc) · 1.6 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
61
62
63
64
65
66
67
# Copyright 2026 The Actordock Authors.
# SPDX-License-Identifier: Apache-2.0
name: e2e-kind
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.24.x"
- name: Test
run: go test ./...
e2e-kind:
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
policy: [fifo, random]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.24.x"
- name: Install kind
run: |
curl -fsSL -o ./kind "https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-amd64"
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Create cluster and deploy
env:
KIND_CLUSTER_NAME: actordock
POLICY: ${{ matrix.policy }}
run: |
chmod +x hack/*.sh
./hack/kind-up.sh
- name: Verify (e2e)
env:
SANDBOX_COUNT: "5"
MAX_RUNNING: "4"
run: ./hack/verify-local.sh
- name: Dump on failure
if: failure()
run: |
kubectl -n actordock get pods -o wide || true
kubectl -n actordock describe pods || true
kubectl -n actordock logs deploy/controlplane --all-containers=true || true
kubectl -n actordock logs statefulset/worker --all-containers=true || true
- name: Teardown
if: always()
run: ./hack/kind-down.sh || true