@@ -3,8 +3,8 @@ name: Periodic integration tests
3
3
on :
4
4
workflow_dispatch :
5
5
branches : [ main ]
6
- # schedule:
7
- # - cron: 0 0 * * SUN
6
+ schedule :
7
+ - cron : 0 0 * * SUN
8
8
9
9
jobs :
10
10
test :
@@ -24,17 +24,19 @@ jobs:
24
24
ports :
25
25
- 2379:2379
26
26
minio :
27
- image : minio /minio:latest
27
+ image : mosuka /minio:latest
28
28
env :
29
- MINIO_ROOT_USER : minio
30
- MINIO_ROOT_PASSWORD : miniosecret
29
+ MINIO_ROOT_USER : ${{ secrets.MINIO_ROOT_USER }}
30
+ MINIO_ROOT_PASSWORD : ${{ secrets.MINIO_ROOT_PASSWORD }}
31
31
ports :
32
32
- 9000:9000
33
33
localstack :
34
34
image : localstack/localstack:latest
35
35
env :
36
36
SERVICES : s3,dynamodb
37
37
DEFAULT_REGION : ap-northeast-1
38
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
39
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
38
40
ports :
39
41
- 4566:4566
40
42
@@ -55,19 +57,19 @@ jobs:
55
57
touch .env
56
58
echo "MINIO_ROOT_USER=${{ secrets.MINIO_ROOT_USER }}" >> .env
57
59
echo "MINIO_ROOT_PASSWORD=${{ secrets.MINIO_ROOT_PASSWORD }}" >> .env
58
- echo "MINIO_VOLUMES=${{ secrets.MINIO_VOLUMES }} " >> .env
59
- echo "MINIO_OPTS=${{ secrets.MINIO_OPTS }} " >> .env
60
- echo "MINIO_REGION_NAME=${{ secrets.MINIO_REGION_NAME }} " >> .env
60
+ echo "MINIO_VOLUMES=/data " >> .env
61
+ echo "MINIO_OPTS=--console-address :9001 " >> .env
62
+ echo "MINIO_REGION_NAME=us-east-1 " >> .env
61
63
echo "MINIO_ACCESS_KEY=${{ secrets.MINIO_ACCESS_KEY }}" >> .env
62
64
echo "MINIO_SECRET_KEY=${{ secrets.MINIO_SECRET_KEY }}" >> .env
63
- echo "MINIO_ENDPOINT=${{ secrets.MINIO_ENDPOINT }} " >> .env
64
- echo "MINIO_SECURE=${{ secrets.MINIO_SECURE }} " >> .env
65
+ echo "MINIO_ENDPOINT=127.0.0.1:9000 " >> .env
66
+ echo "MINIO_SECURE=false " >> .env
65
67
echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}" >> .env
66
68
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> .env
67
- echo "AWS_DEFAULT_REGION=${{ secrets.AWS_DEFAULT_REGION }} " >> .env
68
- echo "AWS_ENDPOINT_URL=${{ secrets.AWS_ENDPOINT_URL }} " >> .env
69
- echo "AWS_USE_PATH_STYLE=${{ secrets.AWS_USE_PATH_STYLE }} " >> .env
70
- echo "ETCD_ENDPOINTS=${{ secrets.ETCD_ENDPOINTS }} " >> .env
69
+ echo "AWS_DEFAULT_REGION=ap-northeast-1 " >> .env
70
+ echo "AWS_ENDPOINT_URL=http://localhost:4566 " >> .env
71
+ echo "AWS_USE_PATH_STYLE=true " >> .env
72
+ echo "ETCD_ENDPOINTS=localhost:2379 " >> .env
71
73
72
74
- name : Test
73
75
run : go test -v -tags=integration ./...
0 commit comments