CI: Ubuntu 22.04

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2022-12-09 10:37:21 +09:00
parent 5e8fcd0cc7
commit eaf15f6382
3 changed files with 9 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ jobs:
main:
strategy:
matrix:
os: [ubuntu-20.04, macos-11]
os: [ubuntu-22.04, macos-12]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
@@ -25,22 +25,22 @@ jobs:
go mod verify
go test -covermode=atomic -race -v github.com/norouter/norouter/...
- name: "Install dependencies for running integration tests"
if: matrix.os != 'macos-11'
if: matrix.os != 'macos-12'
run: sudo apt-get install -y vde2
- name: "Integration: test-agent.sh"
if: matrix.os != 'macos-11'
if: matrix.os != 'macos-12'
working-directory: go/src/github.com/norouter/norouter
run: ./integration/test-agent.sh
- name: "Integration: test-integration.sh"
if: matrix.os != 'macos-11'
if: matrix.os != 'macos-12'
working-directory: go/src/github.com/norouter/norouter
run: DEBUG=1 ./integration/test-integration.sh
- name: "FYI: the maximum possible throughput of docker exec"
if: matrix.os != 'macos-11'
if: matrix.os != 'macos-12'
working-directory: go/src/github.com/norouter/norouter
run: ./integration/show-docker-exec-max-throughput.sh
cross:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- uses: actions/setup-go@v3

View File

@@ -8,7 +8,7 @@ env:
GO111MODULE: on
jobs:
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- uses: actions/setup-go@v3

View File

@@ -33,14 +33,14 @@ docker exec host1 apk add --no-cache iperf3
docker exec host2 apk add --no-cache iperf3
# dind to emulate remote network 192.168.95.0/24, which isn't accessible from host
docker run -l $LABEL -d --name dind1 -v "$(pwd)/bin:/mnt:ro" --privileged -v dind1-vol:/var/lib/docker docker:19.03.13-dind
docker run -l $LABEL -d --name dind1 -v "$(pwd)/bin:/mnt:ro" --privileged -v dind1-vol:/var/lib/docker docker:20.10.21-dind
sleep 10; until docker exec dind1 docker info; do sleep 10; done
docker exec dind1 docker network create dind1-subnet95 --subnet=192.168.95.0/24
docker exec -t dind1 docker run --network dind1-subnet95 -d --name dind1-bastion -v "/mnt:/mnt:ro" alpine sleep infinity
docker exec -t dind1 docker run --network dind1-subnet95 -d --name dind1-wordpress --hostname dind1-wordpress --ip=192.168.95.101 wordpress:5.5.3
docker exec -t dind1 docker run --network dind1-subnet95 -d --name dind1-mediawiki --hostname dind1-mediawiki --ip=192.168.95.102 mediawiki:1.35.0
docker run -l $LABEL -d --name dind2 -v "$(pwd)/bin:/mnt:ro" --privileged -v dind2-vol:/var/lib/docker docker:19.03.13-dind
docker run -l $LABEL -d --name dind2 -v "$(pwd)/bin:/mnt:ro" --privileged -v dind2-vol:/var/lib/docker docker:20.10.21-dind
sleep 10; until docker exec dind2 docker info; do sleep 10; done
docker exec dind2 docker network create dind2-subnet96 --subnet=192.168.96.0/24
docker exec -t dind2 docker run --network dind2-subnet96 -d --name dind2-bastion -v "/mnt:/mnt:ro" alpine sleep infinity