39
39
runs-on : ubuntu-latest
40
40
container :
41
41
image : amd64/rust
42
+ defaults :
43
+ run :
44
+ working-directory : object_store
42
45
steps :
43
46
- uses : actions/checkout@v3
44
47
- name : Setup Rust toolchain
@@ -50,26 +53,29 @@ jobs:
50
53
# features that might be enabled by dev-dependencies of other
51
54
# targets.
52
55
- name : Run clippy with default features
53
- run : cargo clippy -p object_store - - -D warnings
56
+ run : cargo clippy -- -D warnings
54
57
- 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
56
59
- 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
58
61
- 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
60
63
- 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
62
65
- 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
64
67
- 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
66
69
67
70
# test the crate
68
71
# This runs outside a container to workaround lack of support for passing arguments
69
72
# to service containers - https://github.com/orgs/community/discussions/26688
70
73
linux-test :
71
74
name : Emulator Tests
72
75
runs-on : ubuntu-latest
76
+ defaults :
77
+ run :
78
+ working-directory : object_store
73
79
env :
74
80
# Disable full debug symbol generation to speed up CI build and keep memory down
75
81
# "1" means line tables only, which is useful for panic tracebacks.
@@ -128,14 +134,17 @@ jobs:
128
134
OBJECT_STORE_AWS_ACCESS_KEY_ID : test
129
135
OBJECT_STORE_AWS_SECRET_ACCESS_KEY : test
130
136
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
132
138
133
139
# test the object_store crate builds against wasm32 in stable rust
134
140
wasm32-build :
135
141
name : Build wasm32
136
142
runs-on : ubuntu-latest
137
143
container :
138
144
image : amd64/rust
145
+ defaults :
146
+ run :
147
+ working-directory : object_store
139
148
steps :
140
149
- uses : actions/checkout@v3
141
150
with :
@@ -145,6 +154,6 @@ jobs:
145
154
with :
146
155
target : wasm32-unknown-unknown,wasm32-wasi
147
156
- name : Build wasm32-unknown-unknown
148
- run : cargo build -p object_store - -target wasm32-unknown-unknown
157
+ run : cargo build --target wasm32-unknown-unknown
149
158
- name : Build wasm32-wasi
150
- run : cargo build -p object_store - -target wasm32-wasi
159
+ run : cargo build --target wasm32-wasi
0 commit comments