-
Notifications
You must be signed in to change notification settings - Fork 69
48 lines (45 loc) · 1.25 KB
/
e2e-test.yaml
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
name: Backup Restore CI
on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
env :
K3D_VERSION : v5.4.6
CLUSTER_NAME : backup-restore
jobs:
e2e:
name : e2e-test
runs-on : ubuntu-latest
strategy:
matrix:
K8S_VERSION_FROM_CI : ["v1.24","stable"]
include:
- platform: linux/amd64
- platform: linux/arm64
steps:
- name : Checkout repository
uses : actions/checkout@v4
- name : Setup environment variables
run : echo "K8S_VERSION_FROM_CI=${{ matrix.K8S_VERSION_FROM_CI }}" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name : CI
run : make ci
- name : Install K3D
run : ./.github/workflows/e2e/scripts/install-k3d.sh
- name : Setup Cluster
run : ./.github/workflows/e2e/scripts/setup-cluster.sh
- name : Cluster info
run: |
kubectl cluster-info --context ${{ env.CLUSTER_NAME }}
- name: Nodes
run: |
docker ps -a
kubectl config use-context ${{ env.CLUSTER_NAME }}
kubectl get nodes -o wide
- name: Network
run: docker network inspect nw01