Skip to content

Commit 737e654

Browse files
committed
ci(rust): add validation workflow
1 parent f06fcbd commit 737e654

2 files changed

Lines changed: 70 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Rust Validation CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
validate:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Rust toolchain
21+
uses: dtolnay/rust-toolchain@stable
22+
with:
23+
components: rustfmt, clippy
24+
25+
- name: Cargo Format Check
26+
run: cargo fmt --all --check
27+
working-directory: agy7rust
28+
29+
- name: Cargo Check
30+
run: cargo check
31+
working-directory: agy7rust
32+
33+
- name: Cargo Test
34+
run: cargo test
35+
working-directory: agy7rust
36+
37+
- name: Cargo Clippy
38+
run: cargo clippy -- -D warnings
39+
working-directory: agy7rust

CI_RUST_VALIDATION_SNAPSHOT.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# CI Rust Validation Snapshot Report
2+
3+
## 1. CI Workflow Configuration
4+
- **File Path:** `.github/workflows/rust-validation.yml`
5+
- **Triggers:** Push and pull request to the `main` branch.
6+
- **Environment:** Run on `ubuntu-latest`.
7+
- **Permissions:** `contents: read` to ensure read-only workspace access.
8+
9+
## 2. Command Pipeline
10+
The CI job executes the standard Rust validation suite offline under the `agy7rust` workspace:
11+
1. `cargo fmt --all --check`
12+
2. `cargo check`
13+
3. `cargo test`
14+
4. `cargo clippy -- -D warnings`
15+
16+
## 3. Scope and File Audit
17+
- **Files Created:**
18+
- `.github/workflows/rust-validation.yml`
19+
- `CI_RUST_VALIDATION_SNAPSHOT.md`
20+
- **Verification Note:** `POST_PUSH_GITHUB_VERIFICATION.md` was previously created for manual validation checks and is intentionally excluded from the staging target of this CI phase changes.
21+
22+
## 4. Local Validation and Commit Assertions
23+
- CI is configured to run the Rust validation checklist on GitHub-hosted runners.
24+
- Local project validation remains the source of truth until CI has executed successfully on GitHub.
25+
26+
## 5. Non-Claims
27+
- **CI Safety Guarantee:** CI ensures compilation and lint compliance but does not declare the software to be 100% bug-free or immune to runtime errors.
28+
- **Workflow Scope:** Runs checks only; does not build docker images, deploy code, or execute external webhooks.
29+
30+
## 6. Risks
31+
- No blocking risks found in the validated scope.

0 commit comments

Comments
 (0)