2021-11-17 11:18:15 -05:00
|
|
|
name: e2e
|
|
|
|
|
2024-07-31 08:19:02 -04:00
|
|
|
# Default to 'contents: read', which grants actions to read commits.
|
|
|
|
#
|
|
|
|
# If any permission is set, any permission not included in the list is
|
|
|
|
# implicitly set to "none".
|
|
|
|
#
|
|
|
|
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
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-06-11 06:55:39 -04:00
|
|
|
runs-on: ubuntu-24.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-06-25 08:42:09 -04:00
|
|
|
- 27.0 # latest
|
|
|
|
- 26.1 # latest - 1
|
2024-02-13 08:30:09 -05:00
|
|
|
- 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: |
|
2024-06-11 06:55:39 -04:00
|
|
|
if [ ! -f /etc/docker/daemon.json ]; then
|
|
|
|
# ubuntu 24.04 runners no longer have a default daemon.json present
|
|
|
|
sudo mkdir -p /etc/docker/
|
|
|
|
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
|
|
|
|
else
|
|
|
|
# but if there is one; let's patch it to keep other options that may be set.
|
|
|
|
sudo jq '.experimental = true' < /etc/docker/daemon.json > /tmp/docker.json
|
|
|
|
sudo mv /tmp/docker.json /etc/docker/daemon.json
|
|
|
|
fi
|
2021-11-17 11:18:15 -05:00
|
|
|
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-11-15 03:41:54 -05:00
|
|
|
uses: codecov/codecov-action@v5
|
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 }}
|