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:
|
2022-08-20 09:55:20 -04:00
|
|
|
runs-on: ubuntu-20.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:
|
|
|
|
# - 20.10-dind # FIXME: Fails on 20.10
|
|
|
|
- stable-dind # TODO: Use 20.10-dind, stable-dind is deprecated
|
|
|
|
include:
|
|
|
|
- target: non-experimental
|
|
|
|
engine-version: 19.03-dind
|
|
|
|
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 }}
|
|
|
|
E2E_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
|