mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #2741 from kolyshkin/test-images
This commit is contained in:
@@ -29,13 +29,10 @@ jobs:
|
||||
|
||||
- name: install deps
|
||||
run: |
|
||||
# skopeo repo
|
||||
echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/ /' | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
|
||||
wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/Debian_10/Release.key -O- | sudo apt-key add -
|
||||
# criu repo
|
||||
sudo add-apt-repository -y ppa:criu/ppa
|
||||
# apt-add-repository runs apt update so we don't have to
|
||||
sudo apt -q install libseccomp-dev criu skopeo
|
||||
sudo apt -q install libseccomp-dev criu
|
||||
|
||||
- name: install go ${{ matrix.go-version }}
|
||||
uses: actions/setup-go@v2
|
||||
@@ -46,26 +43,11 @@ jobs:
|
||||
- name: build
|
||||
run: sudo -E PATH="$PATH" make all
|
||||
|
||||
- name: install umoci
|
||||
run: |
|
||||
mkdir ~/bin
|
||||
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
|
||||
curl -o ~/bin/umoci -fsSL https://github.com/opencontainers/umoci/releases/download/v0.4.6/umoci.amd64
|
||||
chmod +x ~/bin/umoci
|
||||
|
||||
- name: install bats
|
||||
uses: mig4/setup-bats@v1
|
||||
with:
|
||||
bats-version: 1.2.1
|
||||
|
||||
- name: get images for libcontainer/integration unit test
|
||||
# no rootless unit tests
|
||||
if: matrix.rootless != 'rootless'
|
||||
run: |
|
||||
sudo mkdir /busybox /debian
|
||||
. tests/integration/multi-arch.bash
|
||||
curl -fsSL `get_busybox` | sudo tar xfJC - /busybox
|
||||
|
||||
- name: unit test
|
||||
if: matrix.rootless != 'rootless'
|
||||
run: sudo -E PATH="$PATH" -- make localunittest
|
||||
|
||||
Reference in New Issue
Block a user