-
Notifications
You must be signed in to change notification settings - Fork 55
60 lines (51 loc) · 1.37 KB
/
services-test-minio.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: "Services Test Minio"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
on:
push:
paths:
- 'services/minio/**'
tags-ignore:
- '**'
branches:
- '**'
pull_request:
paths:
- 'services/minio/**'
jobs:
integration_test:
name: "Integration Test"
runs-on: ubuntu-latest
services:
minio:
image: wktk/minio-server
ports:
- 9000:9000
env:
MINIO_ACCESS_KEY: "minioadmin"
MINIO_SECRET_KEY: "minioadmin"
strategy:
matrix:
go: [ "1.16", "1.17" ]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup test bucket
env:
AWS_ACCESS_KEY_ID: "minioadmin"
AWS_SECRET_ACCESS_KEY: "minioadmin"
AWS_EC2_METADATA_DISABLED: "true"
run: aws --endpoint-url http://127.0.0.1:9000/ s3 mb s3://test
- name: Test
env:
STORAGE_MINIO_INTEGRATION_TEST: "on"
STORAGE_MINIO_CREDENTIAL: "hmac:minioadmin:minioadmin"
STORAGE_MINIO_NAME: "test"
STORAGE_MINIO_ENDPOINT: "http:127.0.0.1:9000"
working-directory: services/minio
run: make integration_test