Skip to content

Commit

Permalink
Download minio action (#14471)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomponline authored Nov 15, 2024
2 parents 7f66209 + cbaf1c3 commit af33a0f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
18 changes: 18 additions & 0 deletions .github/actions/download-minio/action.yml
Original file line number Diff line number Diff line change
@@ -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"
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 af33a0f

Please sign in to comment.