From dbb83012c5c7e37deb11e534deee7c049e1219a5 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 24 Nov 2020 13:08:27 -0800 Subject: [PATCH] ci: add integration tests to github actions This is Ubuntu 20.04 so cgroup v1 testing. Signed-off-by: Kir Kolyshkin --- .github/workflows/test.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000000..1409861a2b5 --- /dev/null +++ b/.github/workflows/test.yml @@ -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 }}