File tree Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Expand file tree Collapse file tree 1 file changed +23
-10
lines changed Original file line number Diff line number Diff line change 18
18
- 5432:5432
19
19
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
20
20
21
- minio :
22
- image : bitnami/minio:latest
23
- env :
24
- MINIO_ROOT_USER : root
25
- MINIO_ROOT_PASSWORD : tembatemba
26
- MINIO_DEFAULT_BUCKETS : temba-archives
27
- ports :
28
- - 9000:9000
29
- options : --health-cmd "mc ready local" --health-interval 10s --health-timeout 5s --health-retries 5
30
-
31
21
steps :
32
22
- name : Checkout code
33
23
uses : actions/checkout@v4
37
27
with :
38
28
go-version : ${{ env.go-version }}
39
29
30
+ - name : Run MinIO docker container
31
+ run : |
32
+ docker run -d --rm \
33
+ -p 9000:9000 \
34
+ -p 9001:9001 \
35
+ --env MINIO_ROOT_USER=root \
36
+ --env MINIO_ROOT_PASSWORD=tembatemba \
37
+ --health-cmd "curl -f http://127.0.0.1:9000/minio/health/live" \
38
+ --health-interval 10s \
39
+ --health-timeout 5s \
40
+ --health-retries 5 \
41
+ minio/minio:RELEASE.2025-07-23T15-54-02Z minio server /data --console-address ":9001"
42
+ - name : Install MinIO client
43
+ run : |
44
+ # Download MinIO client and its checksum
45
+ sudo curl -O https://dl.min.io/client/mc/release/linux-amd64/archive/mc.RELEASE.2025-08-13T08-35-41Z
46
+ sudo curl -O https://dl.min.io/client/mc/release/linux-amd64/archive/mc.RELEASE.2025-08-13T08-35-41Z.sha256sum
47
+ sha256sum -c mc.RELEASE.2025-08-13T08-35-41Z.sha256sum
48
+ sudo chmod +x mc.RELEASE.2025-08-13T08-35-41Z
49
+ sudo mv mc.RELEASE.2025-08-13T08-35-41Z /usr/local/bin/mc
50
+ mc alias set local http://127.0.0.1:9000 root tembatemba
51
+ mc ls local/temba-archives || mc mb local/temba-archives
52
+
40
53
- name : Run tests
41
54
run : go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...
42
55
You can’t perform that action at this time.
0 commit comments