forked from youki-dev/youki
-
Notifications
You must be signed in to change notification settings - Fork 1
129 lines (123 loc) · 3.66 KB
/
e2e.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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: 🧪 e2e test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
youki-build:
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/[email protected]
- name: Install just
uses: taiki-e/install-action@just
- name: Install requirements
run: sudo env PATH=$PATH just ci-prepare
- name: Build youki
run: just youki-release
- name: Upload youki binary
uses: actions/upload-artifact@v3
with:
name: youki
path: youki
containerd-integration-tests:
runs-on: ubuntu-22.04
needs: [youki-build]
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
with:
repository: containerd/containerd
ref: v1.6.20
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: true
- run: sudo apt-get -y update
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev btrfs-progs libbtrfs-dev
- name: Build containerd
run: |
make build
make binaries
- name: Download youki binary
uses: actions/download-artifact@v3
with:
name: youki
- name: Replace runc to youki
run: |
sudo rm -f /usr/bin/runc /usr/local/bin/runc /usr/sbin/runc
sudo chmod 755 youki
sudo cp youki /usr/bin/runc
runc --version
- name: Integration Test
run: sudo make TEST_RUNTIME=io.containerd.runc.v2 TESTFLAGS="-timeout 40m" integration
k8s-tests:
runs-on: ubuntu-22.04
needs: [youki-build]
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- name: Download youki binary
uses: actions/download-artifact@v3
with:
name: youki
- name: Add the permission to run
run: chmod +x ./youki
- name: Install just
uses: taiki-e/install-action@just
- name: test/k8s/deploy
run: just test-kind
oci-validation-go:
runs-on: ubuntu-22.04
needs: [youki-build]
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install just
uses: taiki-e/install-action@just
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: true
cache-dependency-path: tests/oci-runtime-tests/src/github.com/opencontainers/runtime-tools/go.sum
- name: Download youki binary
uses: actions/download-artifact@v3
with:
name: youki
- name: Add the permission to run
run: chmod +x ./youki
- name: Run integration tests
run: just oci-tests
oci-validation-rust:
runs-on: ubuntu-22.04
needs: [youki-build]
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install just
uses: taiki-e/install-action@just
- name: Install requirements
run: sudo env PATH=$PATH just ci-prepare
- name: Download youki binary
uses: actions/download-artifact@v3
with:
name: youki
- name: Add the permission to run
run: chmod +x ./youki
- name: Build
run: just runtimetest rust-oci-tests-bin
- name: Validate tests on youki
run: just rust-oci-tests