Bumped version to endpoint/v1.2.1 #1
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
name: "Services Test S3" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: true | |
on: | |
push: | |
paths: | |
- 'services/s3/**' | |
tags-ignore: | |
- '**' | |
branches: | |
- '**' | |
pull_request: | |
paths: | |
- 'services/s3/**' | |
jobs: | |
services_test_s3: | |
name: "Services Test S3" | |
runs-on: self-hosted | |
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: Load secret | |
uses: 1password/load-secrets-action@v1 | |
env: | |
STORAGE_S3_CREDENTIAL: op://Engineering/S3/testing/credential | |
STORAGE_S3_NAME: op://Engineering/S3/testing/name | |
STORAGE_S3_LOCATION: op://Engineering/S3/testing/location | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Test | |
env: | |
STORAGE_S3_INTEGRATION_TEST: on | |
working-directory: services/s3 | |
run: make integration_test | |
service_test_minio: | |
name: "Service Test Minio" | |
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_S3_INTEGRATION_TEST: "on" | |
STORAGE_S3_CREDENTIAL: "hmac:minioadmin:minioadmin" | |
STORAGE_S3_NAME: "test" | |
STORAGE_S3_ENDPOINT: "http:127.0.0.1:9000" | |
STORAGE_S3_LOCATION: "local" | |
working-directory: services/s3 | |
run: make integration_test |