Skip to content

Commit d2046c7

Browse files
committed
Establish check baseline
1 parent 0e7f17b commit d2046c7

3 files changed

Lines changed: 43 additions & 2 deletions

File tree

.github/workflows/checks.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Checks
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
checks:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Rust
16+
uses: dtolnay/rust-toolchain@stable
17+
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v2
20+
21+
- name: Check Rust formatting
22+
run: cargo fmt --check
23+
24+
- name: Test Rust
25+
run: cargo test
26+
27+
- name: Install frontend dependencies
28+
run: bun install --frozen-lockfile
29+
30+
- name: Check frontend
31+
run: bun run check
32+
33+
- name: Audit frontend dependencies
34+
run: bun audit

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ <h2>OPTIMIZATION PARAMS</h2>
9999

100100
<div class="control-row">
101101
<div class="control-item">
102-
<label for="param-sigma">Walking Radius: <span id="param-sigma-value">200m</span></label>
102+
<label for="param-sigma"
103+
>Walking Radius: <span id="param-sigma-value">200m</span></label
104+
>
103105
<input id="param-sigma" type="range" min="50" max="1000" step="50" value="200" />
104106
</div>
105107
</div>

src/server.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ fn build_presets() -> Vec<PresetResponse> {
123123
("phase1", "Phase 1 — Early Game (Tiers 1-2)", false, 200.0),
124124
("phase2", "Phase 2 — Steel & Coal (Tiers 3-4)", false, 300.0),
125125
("phase3", "Phase 3 — Oil & Quartz (Tiers 5-6)", false, 400.0),
126-
("phase4", "Phase 4 — Aluminum & Nuclear (Tiers 7-8)", true, 600.0),
126+
(
127+
"phase4",
128+
"Phase 4 — Aluminum & Nuclear (Tiers 7-8)",
129+
true,
130+
600.0,
131+
),
127132
("phase5", "Phase 5 — Quantum (Tier 9)", true, 800.0),
128133
(
129134
"collectibles",

0 commit comments

Comments
 (0)