Skip to content

Commit ff670c5

Browse files
authored
Fix object_store CI (#4037)
1 parent 6e9751f commit ff670c5

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.github/workflows/object_store.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
runs-on: ubuntu-latest
4040
container:
4141
image: amd64/rust
42+
defaults:
43+
run:
44+
working-directory: object_store
4245
steps:
4346
- uses: actions/checkout@v3
4447
- name: Setup Rust toolchain
@@ -50,26 +53,29 @@ jobs:
5053
# features that might be enabled by dev-dependencies of other
5154
# targets.
5255
- name: Run clippy with default features
53-
run: cargo clippy -p object_store -- -D warnings
56+
run: cargo clippy -- -D warnings
5457
- name: Run clippy with aws feature
55-
run: cargo clippy -p object_store --features aws -- -D warnings
58+
run: cargo clippy --features aws -- -D warnings
5659
- name: Run clippy with aws_profile feature
57-
run: cargo clippy -p object_store --features aws_profile -- -D warnings
60+
run: cargo clippy --features aws_profile -- -D warnings
5861
- name: Run clippy with gcp feature
59-
run: cargo clippy -p object_store --features gcp -- -D warnings
62+
run: cargo clippy --features gcp -- -D warnings
6063
- name: Run clippy with azure feature
61-
run: cargo clippy -p object_store --features azure -- -D warnings
64+
run: cargo clippy --features azure -- -D warnings
6265
- name: Run clippy with all features
63-
run: cargo clippy -p object_store --all-features -- -D warnings
66+
run: cargo clippy --all-features -- -D warnings
6467
- name: Run clippy with all features and all targets
65-
run: cargo clippy -p object_store --all-features --all-targets -- -D warnings
68+
run: cargo clippy --all-features --all-targets -- -D warnings
6669

6770
# test the crate
6871
# This runs outside a container to workaround lack of support for passing arguments
6972
# to service containers - https://github.com/orgs/community/discussions/26688
7073
linux-test:
7174
name: Emulator Tests
7275
runs-on: ubuntu-latest
76+
defaults:
77+
run:
78+
working-directory: object_store
7379
env:
7480
# Disable full debug symbol generation to speed up CI build and keep memory down
7581
# "1" means line tables only, which is useful for panic tracebacks.
@@ -128,14 +134,17 @@ jobs:
128134
OBJECT_STORE_AWS_ACCESS_KEY_ID: test
129135
OBJECT_STORE_AWS_SECRET_ACCESS_KEY: test
130136
OBJECT_STORE_AWS_ENDPOINT: http://localhost:4566
131-
run: cargo test -p object_store --features=aws,azure,gcp,http
137+
run: cargo test --features=aws,azure,gcp,http
132138

133139
# test the object_store crate builds against wasm32 in stable rust
134140
wasm32-build:
135141
name: Build wasm32
136142
runs-on: ubuntu-latest
137143
container:
138144
image: amd64/rust
145+
defaults:
146+
run:
147+
working-directory: object_store
139148
steps:
140149
- uses: actions/checkout@v3
141150
with:
@@ -145,6 +154,6 @@ jobs:
145154
with:
146155
target: wasm32-unknown-unknown,wasm32-wasi
147156
- name: Build wasm32-unknown-unknown
148-
run: cargo build -p object_store --target wasm32-unknown-unknown
157+
run: cargo build --target wasm32-unknown-unknown
149158
- name: Build wasm32-wasi
150-
run: cargo build -p object_store --target wasm32-wasi
159+
run: cargo build --target wasm32-wasi

0 commit comments

Comments
 (0)