Skip to content

Commit

Permalink
ci: add integration tests to github actions
Browse files Browse the repository at this point in the history
This is Ubuntu 20.04 so cgroup v1 testing.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Nov 24, 2020
1 parent 06b737b commit dbb8301
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: test
on:
push:
tags:
- v*
branches:
- master
pull_request:

jobs:
integration:
strategy:
matrix:
go-version: [1.14.x, 1.15.x]
systemd: ["yes", ""]
rootless: ["rootless", ""]
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: install deps
run: |
sudo apt update
sudo apt install libseccomp-dev
- name: install criu
env:
VERSION: 3.15
run: |
mkdir criu
curl -fsSL https://github.com/checkpoint-restore/criu/archive/${VERSION}.tar.gz | tar -C criu -xz --strip-components=1
pushd criu
echo 1 > .gitid
sudo make -j $(nproc) install-criu
popd
rm -rf criu
- name: install bats
uses: mig4/setup-bats@v1
with:
bats-version: 1.2.1
- name: install go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: build
run: sudo -E PATH="$PATH" make all
- name: test
run: sudo -E PATH="$PATH" make ${{ matrix.rootless }}localintegration
env:
RUNC_USE_SYSTEMD: ${{ matrix.systemd }}

0 comments on commit dbb8301

Please sign in to comment.