-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52afc6f
commit 5934aa5
Showing
6 changed files
with
138 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Funnel Build and Cache | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21 | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Cache Funnel binary | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./funnel | ||
key: ${{ runner.os }}-funnel-bin-${{ hashFiles('**/go.sum') }}-${{ github.ref }} | ||
restore-keys: | | ||
${{ runner.os }}-funnel-bin-${{ github.ref }} | ||
${{ runner.os }}-funnel-bin- | ||
- name: Build Funnel (if cache doesn't exist) | ||
run: | | ||
if [ ! -f ./funnel ]; then | ||
make build | ||
fi | ||
- name: Cache Funnel binary (after build) | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./funnel | ||
key: ${{ runner.os }}-funnel-bin-${{ hashFiles('**/go.sum') }}-${{ github.ref }} | ||
|
||
- name: Upload Funnel binary as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: funnel | ||
path: funnel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Credit: rhnvrm | ||
# Adapted from: https://rohanverma.net/blog/2021/02/09/minio-github-actions/ | ||
|
||
name: S3 Integration Test | ||
|
||
on: | ||
push: | ||
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: funnelBin | ||
|
||
- 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 |
Oops, something went wrong.