Skip to content

Merge pull request #1280 from saschagrunert/cri-o-script #1790

Merge pull request #1280 from saschagrunert/cri-o-script

Merge pull request #1280 from saschagrunert/cri-o-script #1790

Workflow file for this run

name: cri-tools e2e test
on:
push:
tags:
- "*"
branches:
- master
pull_request:
jobs:
test-e2e:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Cache go modules and build cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
'%LocalAppData%\go-build' # Windows
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Checkout
uses: actions/checkout@v4
with:
path: src/github.com/kubernetes-sigs/cri-tools
- name: Cache go modules and build cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
'%LocalAppData%\go-build' # Windows
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Run e2e test
run: |
sudo apt-get update &&\
sudo apt-get install -y \
conntrack \
libseccomp-dev \
libgpgme-dev
VERSION=v1.0.1 &&\
sudo mkdir -p /opt/cni/bin &&\
sudo wget -qO- https://github.com/containernetworking/plugins/releases/download/$VERSION/cni-plugins-linux-amd64-$VERSION.tgz \
| sudo tar xfz - -C /opt/cni/bin &&\
ls -lah /opt/cni/bin
VERSION=v1.1.0 &&\
sudo wget -q -O \
/usr/bin/runc \
https://github.com/opencontainers/runc/releases/download/$VERSION/runc.amd64 &&\
sudo chmod +x /usr/bin/runc &&\
runc --version
sudo -E PATH=$PATH make all install test-e2e TESTFLAGS=-v
working-directory: src/github.com/kubernetes-sigs/cri-tools