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
42 changes: 0 additions & 42 deletions .github/workflows/deno.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow runs Rust checks and tests using the stable Rust toolchain.

name: Rust

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

permissions:
contents: read

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install stable Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt

- name: Check formatting
run: cargo fmt --all --check
Comment on lines +31 to +32

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Validation fails without a Cargo project

Every run fails at cargo fmt --all --check because the repository has no Cargo manifest. Neither cargo check nor cargo test runs.

Learn more

The workflow runs at the repository root after checkout. This repository contains package.json and JavaScript source, but no Cargo.toml or Rust source. Cargo needs a manifest before it can format, check, or test a project, so every run stops at the first Cargo command.

Example: A pull request changes src/core/billing.js. Checkout succeeds, then cargo fmt --all --check reports that no Cargo.toml exists; the job fails without validating the change.

Recommended fix: Replace the Cargo steps with checks for the actual Node project, using the Node version specified by package.json and installing dependencies before running its checks. If Rust validation is intended for a future project, introduce its manifest and sources first.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.


- name: Run cargo check
run: cargo check --verbose
Comment on lines +31 to +35

- name: Run cargo test
run: cargo test --verbose
Comment thread
tjkilgore93-stack marked this conversation as resolved.
Resolved
Loading