Skip to content
Merged
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
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
pull_request:
push:
branches:
- main
- master

jobs:
desktop-contract-checks:
name: Desktop contract checks
runs-on: ubuntu-22.04

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Set up Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install Linux desktop dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

- name: Install workspace dependencies
run: pnpm install --no-frozen-lockfile

- name: Check task-loop protocol sync
run: pnpm check:task-loop-protocol-sync

- name: Build desktop app
run: pnpm --filter desktop build

- name: Check desktop Tauri crate
run: cargo check --manifest-path apps/desktop/src-tauri/Cargo.toml
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Thank you for your interest in contributing to Codra by Talocode.
6. **Run checks** before submitting:
```bash
pnpm install
cargo check
pnpm check:task-loop-protocol-sync
pnpm --filter desktop build
cargo check --manifest-path apps/desktop/src-tauri/Cargo.toml
```

## Code of Conduct
Expand Down
3 changes: 1 addition & 2 deletions apps/desktop/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,7 @@ fn codra_run_verification(
) -> Result<codra_protocol::Task, String> {
let task_store = TaskStore::new(&workspace_path);
let verifier = TaskVerifier::<RealCommandRunner>::new(task_store.clone(), RealCommandRunner);
// Simplified: just return the task after attempting verification
let _ = verifier.run_verification(&task_id, None);
verifier.run_verification(&task_id, None)?;
task_store.load_task(&task_id)
}

Expand Down
Loading
Loading