Skip to content

Commit

Permalink
ci: Enable behavior test for azblob (#229)
Browse files Browse the repository at this point in the history
* ci: Enable behavior test for azblob

Signed-off-by: Xuanwo <github@xuanwo.io>

* Fix entrypoint

Signed-off-by: Xuanwo <github@xuanwo.io>

* Fix service

Signed-off-by: Xuanwo <github@xuanwo.io>

* Fix command

Signed-off-by: Xuanwo <github@xuanwo.io>

* Fix create container

Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Apr 7, 2022
1 parent 9bbd451 commit 0da98a3
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/service_test_azblob.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Service Test Azblob

on: [ push, pull_request ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
azurite_azblob:
runs-on: ubuntu-latest

# Setup azurite server
services:
azurite:
image: mcr.microsoft.com/azure-storage/azurite
ports:
- 10000:10000

steps:
- uses: actions/checkout@v2

- uses: Swatinem/rust-cache@v1

- name: Setup test bucket
run: |
az storage container create \
--name test \
--connection-string "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;"
- name: Test
shell: bash
run: cargo test azblob --all-features -- --nocapture
env:
RUST_BACKTRACE: full
RUST_LOG: debug
OPENDAL_AZBLOB_TEST: on
OPENDAL_AZBLOB_CONTAINER: test
OPENDAL_AZBLOB_ENDPOINT: "http://127.0.0.1:10000/devstoreaccount1"
OPENDAL_AZBLOB_ACCOUNT_NAME: devstoreaccount1
OPENDAL_AZBLOB_ACCOUNT_KEY: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==

0 comments on commit 0da98a3

Please # to comment.