From bf0686ba6f93437e10e6040982127a0677db924c Mon Sep 17 00:00:00 2001
From: ningmingxiao <ning.mingxiao@zte.com.cn>
Date: Thu, 24 Oct 2024 22:13:11 +0800
Subject: [PATCH] ci:add cri-integration

Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
---
 .github/workflows/ci.yml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 38b0d0504..f9c47cd74 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -172,6 +172,24 @@ jobs:
           sudo -E PATH=$PATH make integration
         working-directory: src/github.com/containerd/containerd
 
+      - name: Install containerd dependencies
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y gperf dmsetup strace xfsprogs
+          script/setup/install-seccomp
+          script/setup/install-runc
+          script/setup/install-cni $(grep containernetworking/plugins go.mod | awk '{print $2}')
+          script/setup/install-critools
+          script/setup/install-failpoint-binaries
+        working-directory: src/github.com/containerd/containerd
+
+      - name: cri-integration
+        env:
+          RUNC_FLAVOR: "runc"
+        run: |
+          sudo -E PATH=$PATH CONTAINERD_RUNTIME=io.containerd.runc.v2-rs make BUILDTAGS="no_btrfs"  cri-integration
+        working-directory: src/github.com/containerd/containerd
+
   windows-integration:
     name: Windows Integration
     runs-on: ${{ matrix.os }}