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
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
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
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
0 commit comments