Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,21 @@ jobs:
with:
components: clippy

- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.9

- name: Cache cargo registry
- name: Cache cargo artifacts
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
backend/target
key: cargo-${{ runner.os }}-${{ hashFiles('backend/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-

- name: cargo clippy
run: cargo clippy --all-targets -- -D warnings
# No sccache for clippy — cached artifacts can replay stale lint warnings
# even when the source has changed (sccache hashes deps/flags, not source content)

- name: cargo test
run: cargo test
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

test-frontend:
if: github.event.label.name == 'ci-test'
Expand Down Expand Up @@ -90,9 +83,6 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.9

- name: Cache cargo-audit binary
id: cache-audit
uses: actions/cache@v4
Expand All @@ -103,16 +93,10 @@ jobs:
- name: Install cargo-audit
if: steps.cache-audit.outputs.cache-hit != 'true'
run: cargo install cargo-audit --locked
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: Run cargo audit
working-directory: backend
run: cargo audit
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

- name: Setup Node.js
uses: actions/setup-node@v4
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ frontend/node_modules/
frontend/node_modules_old/
frontend/dist/
frontend/.pnpm-store/
frontend/package-lock.json

# Config (generated at first run)
kronn.toml
Expand Down Expand Up @@ -48,3 +49,5 @@ docker-compose.override.yml
.kiro/settings/
.env
/node_modules/
.kronn-tmp/
.kronn/tmp/
1 change: 1 addition & 0 deletions backend/src/agents/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ mod tests {

#[test]
#[serial]
#[cfg(not(target_os = "macos"))]
fn host_is_not_macos_when_unset() {
std::env::remove_var("KRONN_HOST_OS");
assert!(!host_is_macos(), "Should not be macOS when env is unset on Linux");
Expand Down
Loading
Loading