-
Notifications
You must be signed in to change notification settings - Fork 2.1k
103 lines (99 loc) · 3.2 KB
/
e2e_test_core.yml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: E2E Sealos Core Test
on:
workflow_dispatch:
push:
branches: [ "**" ]
paths:
- ".github/workflows/e2e_test_core.yml"
- "cmd/**"
- "pkg/**"
- "test/**"
pull_request:
branches: [ "*" ]
paths:
- ".github/workflows/e2e_test_core.yml"
- "cmd/**"
- "pkg/**"
- "test/**"
jobs:
call_ci_workflow:
uses: ./.github/workflows/import-patch-image.yml
with:
arch: amd64
e2e: true
image: false
e2e-core-test:
needs: [ call_ci_workflow ]
strategy:
fail-fast: false
matrix:
unit:
[
E2E_sealos_images_test,
E2E_sealos_images_buildrun_test,
E2E_sealos_images_buildrun_feature_test,
E2E_sealos_cert_test,
E2E_sealos_run_test,
E2E_sealos_run_docker_test,
E2E_sealos_run_other_test,
E2E_sealos_inspect_test,
E2E_sealos_apply_test,
E2E_sealos_apply_docker_test,
E2E_sealos_apply_other_test,
E2E_sealos_filesystem_test,
E2E_sealos_run_patchimage_test,
E2E_sealos_runtime_version_122_test,
E2E_sealos_runtime_version_123_test,
E2E_sealos_runtime_version_124_test,
E2E_sealos_runtime_version_125_test,
E2E_sealos_runtime_version_126_test,
E2E_sealos_runtime_version_127_test,
E2E_sealos_runtime_version_128_test,
E2E_sealos_runtime_version_docker_122_test,
E2E_sealos_runtime_version_docker_123_test,
E2E_sealos_runtime_version_docker_124_test,
E2E_sealos_runtime_version_docker_125_test,
E2E_sealos_runtime_version_docker_126_test,
E2E_sealos_runtime_version_docker_127_test,
E2E_sealos_runtime_version_docker_128_test
]
runs-on: ubuntu-20.04
steps:
- name: Download image-cri-shim
uses: actions/download-artifact@v3
with:
name: image-cri-shim-amd64
path: /tmp/
- name: Download sealctl
uses: actions/download-artifact@v3
with:
name: sealctl-amd64
path: /tmp/
- name: Download sealos
uses: actions/download-artifact@v3
with:
name: sealos-amd64
path: /tmp/
- name: Download e2e test
uses: actions/download-artifact@v3
with:
name: e2e.test
path: /tmp/
- name: Verify sealos
run: |
sudo chmod a+x /tmp/{sealos,image-cri-shim,sealctl}
sudo mv /tmp/sealos /usr/bin/
sudo sealos version
- name: Remove containerd && docker
uses: labring/sealos-action@v0.0.7
with:
type: prune
- name: Verify E2e test
run: |
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get purge docker-ce docker-ce-cli containerd.io # docker-compose-plugin
sudo apt-get remove -y moby-engine moby-cli moby-buildx moby-compose
sudo rm -rf /var/run/docker.sock
sudo rm -rf /run/containerd/containerd.sock
sudo chmod a+x /tmp/e2e.test
sudo /tmp/e2e.test --ginkgo.v --ginkgo.focus="${{ matrix.unit }}"