Skip to content

Commit 27bfccb

Browse files
authored
Fix Integration tests (#72)
* Update periodic_integration.yml * Enable cron schedule
1 parent 55cae2f commit 27bfccb

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

.github/workflows/periodic_integration.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Periodic integration tests
33
on:
44
workflow_dispatch:
55
branches: [ main ]
6-
# schedule:
7-
# - cron: 0 0 * * SUN
6+
schedule:
7+
- cron: 0 0 * * SUN
88

99
jobs:
1010
test:
@@ -24,17 +24,19 @@ jobs:
2424
ports:
2525
- 2379:2379
2626
minio:
27-
image: minio/minio:latest
27+
image: mosuka/minio:latest
2828
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 }}
3131
ports:
3232
- 9000:9000
3333
localstack:
3434
image: localstack/localstack:latest
3535
env:
3636
SERVICES: s3,dynamodb
3737
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 }}
3840
ports:
3941
- 4566:4566
4042

@@ -55,19 +57,19 @@ jobs:
5557
touch .env
5658
echo "MINIO_ROOT_USER=${{ secrets.MINIO_ROOT_USER }}" >> .env
5759
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
6163
echo "MINIO_ACCESS_KEY=${{ secrets.MINIO_ACCESS_KEY }}" >> .env
6264
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
6567
echo "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}" >> .env
6668
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
7173
7274
- name: Test
7375
run: go test -v -tags=integration ./...

example.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ MINIO_OPTS=--console-address :9001
55
MINIO_REGION_NAME=us-east-1
66
MINIO_ACCESS_KEY=minio
77
MINIO_SECRET_KEY=miniosecret
8-
MINIO_SESSION_TOKEN=
8+
#MINIO_SESSION_TOKEN=
99
MINIO_ENDPOINT=127.0.0.1:9000
1010
MINIO_SECURE=false
1111

1212
AWS_ACCESS_KEY_ID=dummy
1313
AWS_SECRET_ACCESS_KEY=dummy
14-
AWS_SESSION_TOKEN=
14+
#AWS_SESSION_TOKEN=
1515
AWS_DEFAULT_REGION=ap-northeast-1
1616
AWS_ENDPOINT_URL=http://localhost:4566
1717
AWS_USE_PATH_STYLE=true

0 commit comments

Comments
 (0)