ci: add cloud storage driver integration tests to CI

* include storage integration tests in the build matrix
* add a new CI job that runs E2E tests backed by S3 storage driver

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
Milos Gajdos
2023-10-23 14:52:57 +01:00
parent 708bc6f3e9
commit da92c34ae9
5 changed files with 142 additions and 8 deletions

View File

@@ -28,6 +28,9 @@ jobs:
go:
- 1.20.10
- 1.21.3
target:
- test-coverage
- test-cloud-storage
steps:
-
name: Checkout
@@ -40,7 +43,7 @@ jobs:
-
name: Test
run: |
make coverage
make ${{ matrix.target }}
-
name: Codecov
uses: codecov/codecov-action@v3

View File

@@ -31,12 +31,26 @@ jobs:
-
name: Start distribution server
run: |
IP=`hostname -I | awk '{print $1}'`
echo "IP=$IP" >> $GITHUB_ENV
echo '{"insecure-registries" : ["'$IP':5000"]}' | sudo tee /etc/docker/daemon.json
sudo service docker restart
docker run --rm -p 5000:5000 -p 5001:5001 -idt "registry:local"
-
name: Tests
run: |
bash ./tests/push.sh $IP
bash ./tests/push.sh 127.0.0.0
run-e2e-test-s3-storage:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Start E2E environment
run: |
make start-e2e-s3-env
- name: Tests
run: |
bash ./tests/push.sh 127.0.0.0
make stop-e2e-s3-env