Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 29 additions & 13 deletions .github/workflows/service_test_gcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,39 +39,55 @@ concurrency:
jobs:
gcs:
runs-on: ubuntu-latest
if: github.event_name == 'push' || !github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' && github.repository == 'apache/incubator-opendal') || !github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
need-nextest: true

- name: Load secret
id: op-load-secret
uses: 1password/load-secrets-action@v1
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
OPENDAL_GCS_TEST: op://services/gcs/test
OPENDAL_GCS_ROOT: op://services/gcs/root
OPENDAL_GCS_BUCKET: op://services/gcs/bucket
OPENDAL_GCS_CREDENTIAL: op://services/gcs/credential

- name: Test
shell: bash
working-directory: core
run: cargo nextest run gcs
env:
OPENDAL_GCS_TEST: ${{ secrets.OPENDAL_GCS_TEST }}
OPENDAL_GCS_ROOT: ${{ secrets.OPENDAL_GCS_ROOT }}
OPENDAL_GCS_BUCKET: ${{ secrets.OPENDAL_GCS_BUCKET }}
OPENDAL_GCS_CREDENTIAL: ${{ secrets.OPENDAL_GCS_CREDENTIAL }}

gcs-with-default-storage-class:
runs-on: ubuntu-latest
if: github.event_name == 'push' || !github.event.pull_request.head.repo.fork
if: (github.event_name == 'push' && github.repository == 'apache/incubator-opendal') || !github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: ./.github/actions/setup
with:
need-nextest: true

- name: Load secret
id: op-load-secret
uses: 1password/load-secrets-action@v1
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
OPENDAL_GCS_TEST: op://services/gcs/test
OPENDAL_GCS_ROOT: op://services/gcs/root
OPENDAL_GCS_BUCKET: op://services/gcs/bucket
OPENDAL_GCS_CREDENTIAL: op://services/gcs/credential
OPENDAL_GCS_DEFAULT_STORAGE_CLASS: STANDARD

- name: Test
shell: bash
working-directory: core
run: cargo nextest run gcs
env:
OPENDAL_GCS_TEST: ${{ secrets.OPENDAL_GCS_TEST }}
OPENDAL_GCS_ROOT: ${{ secrets.OPENDAL_GCS_ROOT }}
OPENDAL_GCS_BUCKET: ${{ secrets.OPENDAL_GCS_BUCKET }}
OPENDAL_GCS_CREDENTIAL: ${{ secrets.OPENDAL_GCS_CREDENTIAL }}
OPENDAL_GCS_DEFAULT_STORAGE_CLASS: STANDARD
2 changes: 1 addition & 1 deletion .github/workflows/service_test_s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
AWS_WEB_IDENTITY_TOKEN_FILE: tests/data/web_identity_token
AWS_ROLE_ARN: arn:aws:iam::952853449216:role/opendal-testing-assume
OPENDAL_S3_TEST: on
OPENDAL_S3_ROOT: assume
OPENDAL_S3_ROOT: CI/
OPENDAL_S3_BUCKET: opendal-testing
OPENDAL_S3_ROLE_ARN: arn:aws:iam::952853449216:role/opendal-testing
OPENDAL_S3_REGION: ap-northeast-1
Expand Down