Skip to content

Commit 9db52d2

Browse files
authored
Merge pull request #71 from bgpkit/dev/migrate-to-rusty-s3
feat: migrate S3 from rust-s3 to rusty-s3
2 parents b530a91 + 111ca0c commit 9db52d2

18 files changed

Lines changed: 3240 additions & 476 deletions

File tree

‎.github/workflows/rust.yml‎

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: Format
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222

2323
- name: Check formatting
2424
run: cargo fmt --check
@@ -27,7 +27,7 @@ jobs:
2727
name: Check
2828
runs-on: ubuntu-latest
2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v5
3131

3232
- name: Check with default features
3333
run: cargo check
@@ -42,7 +42,7 @@ jobs:
4242
name: Clippy
4343
runs-on: ubuntu-latest
4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
4646

4747
- name: Clippy with all features
4848
run: cargo clippy --all-features -- -D warnings
@@ -58,7 +58,7 @@ jobs:
5858
runs-on: ubuntu-latest
5959
needs: [check, clippy]
6060
steps:
61-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v5
6262

6363
- name: Build with no features
6464
run: cargo build --no-default-features
@@ -126,7 +126,7 @@ jobs:
126126
runs-on: ubuntu-latest
127127
needs: build
128128
steps:
129-
- uses: actions/checkout@v4
129+
- uses: actions/checkout@v5
130130

131131
- name: Test with default features
132132
run: cargo test
@@ -139,3 +139,20 @@ jobs:
139139

140140
- name: Test documentation
141141
run: cargo test --doc --all-features
142+
143+
test-s3:
144+
name: S3 Integration Tests
145+
runs-on: ubuntu-latest
146+
needs: [build, test]
147+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
148+
steps:
149+
- uses: actions/checkout@v5
150+
151+
- name: Run S3 integration tests
152+
env:
153+
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
154+
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
155+
AWS_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
156+
AWS_REGION: auto
157+
ONEIO_TEST_BUCKET: ${{ secrets.R2_TEST_BUCKET }}
158+
run: cargo test --test s3_integration --features s3,rustls -- --ignored --test-threads=1

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Cargo.lock
1313
.DS_Store
1414

1515
.env
16+
.env.local
1617
test
1718
/examples/debug.rs
1819
local

0 commit comments

Comments
 (0)