Skip to content

Commit a2ab199

Browse files
authored
fix(ci): install rustfmt explicitly and stabilize generated types (#1)
1 parent f12ab14 commit a2ab199

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
- uses: actions/checkout@v6
1414
- uses: jdx/mise-action@v4
1515
- uses: Swatinem/rust-cache@v2
16+
- name: ensure rustfmt/clippy components
17+
run: rustup component add rustfmt clippy
1618
- name: check:fmt
1719
run: mise run check:fmt
1820
- name: check:rs
@@ -31,12 +33,6 @@ jobs:
3133
run: mise run build:ts
3234
- name: test:integration:ts
3335
run: mise run test:integration:ts
34-
- name: check:bench
35-
run: cargo bench --no-run
36-
- name: audit
37-
run: |
38-
cargo install cargo-audit --quiet
39-
cargo audit
4036
generate-check:
4137
name: generated files up-to-date
4238
runs-on: ubuntu-latest

crates/server/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,15 @@ pub async fn serve(config: Config) -> Result<()> {
357357
} else {
358358
Storage::new(&config.data_dir)
359359
};
360+
361+
// The `default` bucket is auto-managed: clients may PUT/GET against it
362+
// without an explicit POST /v1/buckets. Materialize its directory so the
363+
// write path's rename target exists. Idempotent.
364+
storage
365+
.create_bucket("default", beyond_objects_storage::AccessLevel::default())
366+
.await
367+
.map_err(|e| anyhow::anyhow!("create default bucket: {e}"))?;
368+
360369
let index = Arc::new(Index::open(&config.index_dir)?);
361370

362371
// Reconcile the listing index against the filesystem before serving.

sdk/ts/scripts/generate-types.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ const spec = resolve(root, "openapi/v1.json");
99
const out = resolve(root, "sdk/ts/src/types.ts");
1010

1111
execSync(`npx openapi-typescript ${spec} -o ${out}`, { stdio: "inherit" });
12+
execSync(`dprint fmt ${out}`, { stdio: "inherit", cwd: root });

0 commit comments

Comments
 (0)