diff --git a/.github/actions/download-minio/action.yml b/.github/actions/download-minio/action.yml new file mode 100644 index 000000000000..46640510bd6a --- /dev/null +++ b/.github/actions/download-minio/action.yml @@ -0,0 +1,18 @@ +name: Download minio/mc +description: Download minio/mc + +runs: + using: composite + steps: + - name: Download minio/mc + shell: bash + run: | + set -eux + mkdir -p "$(go env GOPATH)/bin" + # Download minio ready to include in dependencies for system tests. + curl -sSfL https://dl.min.io/server/minio/release/linux-amd64/minio --output "$(go env GOPATH)/bin/minio" + chmod +x "$(go env GOPATH)/bin/minio" + + # Also grab the latest minio client to maintain compatibility with the server. + curl -sSfL https://dl.min.io/client/mc/release/linux-amd64/mc --output "$(go env GOPATH)/bin/mc" + chmod +x "$(go env GOPATH)/bin/mc" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a346f2d66ba1..0e3ca1da9cba 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -76,17 +76,6 @@ jobs: - name: Install build dependencies uses: ./.github/actions/install-lxd-builddeps - - name: Download minio/mc - run: | - # Download minio ready to include in dependencies for system tests. - mkdir -p "$(go env GOPATH)/bin" - curl -sSfL https://dl.min.io/server/minio/release/linux-amd64/minio --output "$(go env GOPATH)/bin/minio" - chmod +x "$(go env GOPATH)/bin/minio" - - # Also grab the latest minio client to maintain compatibility with the server. - curl -sSfL https://dl.min.io/client/mc/release/linux-amd64/mc --output "$(go env GOPATH)/bin/mc" - chmod +x "$(go env GOPATH)/bin/mc" - - name: Download go dependencies run: | set -eux @@ -198,6 +187,9 @@ jobs: path: ${{env.GOCOVERDIR}} if: env.GOCOVERDIR != '' + - name: Download minio/mc to add to system test dependencies + uses: ./.github/actions/download-minio + - name: Upload system test dependencies uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 with: