Skip to content

Commit 1a800fc

Browse files
hseebergerclaude
andauthored
chore(build): apply common hseeberger project shape (#206)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8c27c08 commit 1a800fc

5 files changed

Lines changed: 19 additions & 18 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ on:
1010
workflow_dispatch:
1111

1212
concurrency:
13-
group: ${{github.workflow}}-${{github.head_ref || github.run_id}}
13+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1414
cancel-in-progress: true
1515

1616
jobs:
1717
toolchain:
1818
name: Setup Rust toolchain
1919
runs-on: ubuntu-latest
2020
outputs:
21-
stable: ${{steps.set_toolchain.outputs.stable}}
22-
nightly: ${{steps.set_toolchain.outputs.nightly}}
21+
stable: ${{ steps.set_toolchain.outputs.stable }}
22+
nightly: ${{ steps.set_toolchain.outputs.nightly }}
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -45,7 +45,7 @@ jobs:
4545
- name: Install Rust
4646
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
4747
with:
48-
toolchain: ${{needs.toolchain.outputs.nightly}}
48+
toolchain: ${{ needs.toolchain.outputs.nightly }}
4949
components: rustfmt
5050

5151
- name: Install just
@@ -71,7 +71,7 @@ jobs:
7171
- name: Install Rust
7272
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
7373
with:
74-
toolchain: ${{needs.toolchain.outputs.stable}}
74+
toolchain: ${{ needs.toolchain.outputs.stable }}
7575
components: clippy
7676

7777
- name: Install just
@@ -84,7 +84,7 @@ jobs:
8484

8585
- name: just lint
8686
run: |
87-
rustup override set ${{needs.toolchain.outputs.stable}}
87+
rustup override set ${{ needs.toolchain.outputs.stable }}
8888
just lint
8989
9090
test:
@@ -98,7 +98,7 @@ jobs:
9898
- name: Install Rust
9999
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
100100
with:
101-
toolchain: ${{needs.toolchain.outputs.stable}}
101+
toolchain: ${{ needs.toolchain.outputs.stable }}
102102

103103
- name: Install just
104104
uses: taiki-e/install-action@5f57d6cb7cd20b14a8a27f522884c4bc8a187458 # v2.75.19
@@ -110,7 +110,7 @@ jobs:
110110

111111
- name: just test
112112
run: |
113-
rustup override set ${{needs.toolchain.outputs.stable}}
113+
rustup override set ${{ needs.toolchain.outputs.stable }}
114114
just test
115115
116116
doc:
@@ -124,7 +124,7 @@ jobs:
124124
- name: Install Rust
125125
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
126126
with:
127-
toolchain: ${{needs.toolchain.outputs.nightly}}
127+
toolchain: ${{ needs.toolchain.outputs.nightly }}
128128
components: rust-docs
129129

130130
- name: Install just

.github/workflows/dependabot-auto-merge.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
steps:
1818
- name: Approve PR
1919
env:
20-
PR_URL: ${{github.event.pull_request.html_url}}
21-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
20+
PR_URL: ${{ github.event.pull_request.html_url }}
21+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
run: gh pr review --approve "$PR_URL"
2323

2424
- name: Enable auto-merge
2525
env:
26-
PR_URL: ${{github.event.pull_request.html_url}}
27-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
26+
PR_URL: ${{ github.event.pull_request.html_url }}
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
run: gh pr merge --auto --squash "$PR_URL"

.github/workflows/release-plz.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Setup Rust toolchain
1515
runs-on: ubuntu-latest
1616
outputs:
17-
toolchain: ${{steps.set_toolchain.outputs.toolchain}}
17+
toolchain: ${{ steps.set_toolchain.outputs.toolchain }}
1818
steps:
1919
- name: Checkout repository
2020
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -40,7 +40,7 @@ jobs:
4040
- name: Install Rust
4141
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
4242
with:
43-
toolchain: ${{needs.toolchain.outputs.toolchain}}
43+
toolchain: ${{ needs.toolchain.outputs.toolchain }}
4444

4545
- name: Run release-plz
4646
uses: MarcoIeni/release-plz-action@1528104d2ca23787631a1c1f022abb64b34c1e11 # v0.5.128

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
2+
.vscode
23
.zed
34
target

justfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ check:
77
cargo check --tests --features axum
88
cargo check --tests --features axum,axum-utoipa
99

10+
fix:
11+
cargo fix --tests --all-features --allow-dirty --allow-staged
12+
1013
fmt:
1114
cargo +{{nightly}} fmt
1215

1316
fmt-check:
1417
cargo +{{nightly}} fmt --check
1518

16-
fix:
17-
cargo fix --tests --all-features --allow-dirty --allow-staged
18-
1919
lint:
2020
cargo clippy --tests --no-deps -- -D warnings
2121
cargo clippy --tests --no-deps --features axum -- -D warnings

0 commit comments

Comments
 (0)