-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add integration tests to github actions
This is Ubuntu 20.04 so cgroup v1 testing. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |