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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 51 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Release CLI

on:
push:
tags:
- 'v*'

jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macos-latest
target: x86_64-apple-darwin
- os: macos-latest
target: aarch64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}

- name: Build
run: cargo build --release --target ${{ matrix.target }} --manifest-path cli/Cargo.toml

- name: Package (Unix)
if: runner.os != 'Windows'
run: |
cd cli/target/${{ matrix.target }}/release
tar czf comfy-qa-${{ matrix.target }}.tar.gz comfy-qa

- name: Package (Windows)
if: runner.os == 'Windows'
run: |
cd cli/target/${{ matrix.target }}/release
7z a comfy-qa-${{ matrix.target }}.zip comfy-qa.exe

- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: |
cli/target/${{ matrix.target }}/release/comfy-qa-${{ matrix.target }}.tar.gz
cli/target/${{ matrix.target }}/release/comfy-qa-${{ matrix.target }}.zip
71 changes: 71 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Rust CI

on:
push:
branches: [main]
paths:
- 'cli/**'
- '.github/workflows/rust-ci.yml'
pull_request:
branches: [main]
paths:
- 'cli/**'
- '.github/workflows/rust-ci.yml'

jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}

- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}

- name: Cache target directory
uses: actions/cache@v3
with:
path: cli/target
key: ${{ runner.os }}-target-${{ hashFiles('**/Cargo.lock') }}

- name: Check formatting
run: cd cli && cargo fmt -- --check

- name: Run clippy
run: cd cli && cargo clippy --all-targets --all-features -- -D warnings

- name: Run tests
run: cd cli && cargo test --verbose

- name: Build release
run: cd cli && cargo build --release

check-multiple-platforms:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

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

- name: Build
run: cd cli && cargo build --verbose

- name: Test
run: cd cli && cargo test --verbose
44 changes: 44 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Validate QA Artifacts

on:
pull_request:
paths:
- 'checklists/**'
- 'workflows/**'
- 'cli/**'
push:
branches: [main]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/
cli/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Build CLI
run: cargo build --release --manifest-path cli/Cargo.toml

- name: Validate all projects
run: cargo run --release --manifest-path cli/Cargo.toml -- validate

- name: Check for drift
run: |
for project in checklists/*/; do
project_name=$(basename "$project")
if [ "$project_name" != "templates" ] && [ "$project_name" != "schema" ]; then
echo "Checking drift for $project_name..."
cargo run --release --manifest-path cli/Cargo.toml -- diff "$project_name" || true
fi
done
40 changes: 32 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,32 @@
.DS_Store
Thumbs.db
*.swp
.idea/
.vscode/
node_modules/
*.log
AGENTS.md
.DS_Store
Thumbs.db
*.swp
.idea/
.vscode/
node_modules/
*.log
AGENTS.md

# Development/implementation notes (local only)
TODO.md
INTERACTIVE_UX_IMPROVEMENTS.md
FINAL.md
FINAL_DESIGN.md
FOR_QA_TESTERS.md
IMPLEMENTATION_SUMMARY.md
QUICK_START.md
REDESIGN_NOTES.md
TEST_SETUP.md
UX_IMPROVEMENTS.md
EXAMPLES.md
INSTALLATION.md

# Rust build artifacts
cli/target/
*.pdb

# Generated workflows (local only)
workflows/generated-local/

# Generated API tests (local only)
api-tests/generated-local/
Loading