Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[actions] add workflow file for containerd integration testing #968

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/containerd_integration_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
youki-build:
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: '1.64.0'
override: true
- name: Cache youki
uses: Swatinem/rust-cache@v1
- run: sudo apt-get -y update
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev libseccomp-dev
- name: Build youki
run: make release-build
- 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.9
- uses: actions/setup-go@v3
with:
go-version: '1.18.3'
- 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