mirror of
https://github.com/distribution/distribution.git
synced 2026-01-25 06:34:24 +00:00
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:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
24
.github/workflows/e2e.yml
vendored
24
.github/workflows/e2e.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user