File tree 4 files changed +15
-3
lines changed
4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 42
42
steps :
43
43
- uses : actions/checkout@v3
44
44
- uses : actions/download-artifact@v3
45
+ - uses : azure/setup-kubectl@v3
46
+ - name : " Install dependencies"
47
+ run : |
48
+ sudo apt-get update
49
+ sudo apt-get install -y protobuf-compiler libseccomp-dev
45
50
- name : Extract containerd-shim-spin-linux-${{ env.ARCH }}
46
51
run : |
47
52
mkdir -p ./bin
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ workloads:
44
44
./scripts/workloads.sh
45
45
46
46
.PHONY : integration-tests
47
- integration-tests : install-cross check-bins move-bins up pod-status-check workloads
48
- cross test --release -- --nocapture
47
+ integration-tests : check-bins move-bins up pod-status-check workloads
48
+ cargo test -p containerd-shim-spin-tests -- --nocapture
49
49
50
50
.PHONY : tests/clean
51
51
tests/clean :
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ which_binary() {
34
34
35
35
36
36
# List of binary names
37
- binaries=(" k3d" " cross " " docker" " kubectl" )
37
+ binaries=(" k3d" " docker" " kubectl" )
38
38
39
39
for binary in " ${binaries[@]} " ; do
40
40
which_binary " $binary "
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
+ # Check if kubectl is installed
6
+ if ! command -v kubectl & > /dev/null; then
7
+ echo " kubectl is not installed. Installing..."
8
+ curl -LO " https://dl.k8s.io/release/$( curl -L -s https://dl.k8s.io/release/stable.txt) /bin/linux/amd64/kubectl"
9
+ sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl;
10
+ fi
11
+
5
12
# apply the workloads
6
13
echo " >>> apply workloads"
7
14
kubectl apply -f tests/workloads
You can’t perform that action at this time.
0 commit comments