Skip to content

Commit

Permalink
github: download minio/mc using action and as late as possible
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Nov 15, 2024
1 parent 757e46b commit cbaf1c3
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit cbaf1c3

Please sign in to comment.