-
Notifications
You must be signed in to change notification settings - Fork 33
55 lines (49 loc) · 1.39 KB
/
s3.yaml
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
# Credit: rhnvrm
# Adapted from: https://rohanverma.net/blog/2021/02/09/minio-github-actions/
name: S3 Integration Test
on:
push:
branches:
- main
- master
pull_request:
jobs:
build:
uses: ./.github/workflows/build.yml
s3Test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Setup minio
run: |
docker run -d -p 9000:9000 --name minio \
-e "MINIO_ROOT_USER=minioadmin" \
-e "MINIO_ROOT_PASSWORD=minioadmin" \
-v /tmp/data:/data \
-v /tmp/config:/root/.minio \
minio/minio server /data
- uses: actions/download-artifact@v4
with:
name: funnel
- name: Start Funnel server
run: |
cat <<EOF > config.yml
LocalStorage:
Disabled: true
AmazonS3:
Disabled: true
GoogleStorage:
Disabled: true
HTTPStorage:
Disabled: true
FTPStorage:
Disabled: true
GenericS3:
- Disabled: false
Endpoint: "localhost:9000"
Key: "minioadmin"
Secret: "minioadmin"
EOF
chmod +x funnel
./funnel server run --config `pwd`/config.yml &> funnel.logs &
./funnel task run examples/s3-test.yml