2021-11-17 11:18:15 -05:00
|
|
|
name: e2e
|
|
|
|
|
2022-08-18 14:03:28 -04:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-11-17 11:18:15 -05:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
2023-02-09 12:03:11 -05:00
|
|
|
- '[0-9]+.[0-9]+'
|
2021-11-17 11:18:15 -05:00
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
e2e:
|
2024-02-13 08:30:09 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2021-11-17 11:18:15 -05:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
target:
|
|
|
|
- non-experimental
|
|
|
|
- experimental
|
|
|
|
- connhelper-ssh
|
|
|
|
base:
|
|
|
|
- alpine
|
2023-07-10 07:01:07 -04:00
|
|
|
- debian
|
2021-11-17 11:18:15 -05:00
|
|
|
engine-version:
|
2024-02-13 08:30:09 -05:00
|
|
|
- 25.0 # latest
|
|
|
|
- 24.0 # latest - 1
|
|
|
|
- 23.0 # mirantis lts
|
|
|
|
# TODO(krissetto) 19.03 needs a look, doesn't work ubuntu 22.04 (cgroup errors).
|
|
|
|
# we could have a separate job that tests it against ubuntu 20.04
|
2021-11-17 11:18:15 -05:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 04:37:30 -04:00
|
|
|
uses: actions/checkout@v4
|
2021-11-17 11:18:15 -05:00
|
|
|
-
|
|
|
|
name: Update daemon.json
|
|
|
|
run: |
|
|
|
|
sudo jq '.experimental = true' < /etc/docker/daemon.json > /tmp/docker.json
|
|
|
|
sudo mv /tmp/docker.json /etc/docker/daemon.json
|
|
|
|
sudo cat /etc/docker/daemon.json
|
|
|
|
sudo service docker restart
|
|
|
|
docker version
|
|
|
|
docker info
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
2023-09-12 04:24:45 -04:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2021-11-17 11:18:15 -05:00
|
|
|
-
|
|
|
|
name: Run ${{ matrix.target }}
|
|
|
|
run: |
|
|
|
|
make -f docker.Makefile test-e2e-${{ matrix.target }}
|
|
|
|
env:
|
|
|
|
BASE_VARIANT: ${{ matrix.base }}
|
2024-02-13 08:32:45 -05:00
|
|
|
ENGINE_VERSION: ${{ matrix.engine-version }}
|
2021-12-07 08:50:16 -05:00
|
|
|
TESTFLAGS: -coverprofile=/tmp/coverage/coverage.txt
|
|
|
|
-
|
|
|
|
name: Send to Codecov
|
2024-02-01 03:57:32 -05:00
|
|
|
uses: codecov/codecov-action@v4
|
2021-12-07 08:50:16 -05:00
|
|
|
with:
|
|
|
|
file: ./build/coverage/coverage.txt
|
2024-02-22 12:11:18 -05:00
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|