Skip to content

armgit / forma

Public Imported from GitHub
0

A 1.2 MB pure-Rust rewrite of headless Blender built for AI agents — 3D B-rep modeling engine, CLI, and MCP server

ci: add PR CI workflow and CODEOWNERS for main branch protection (#70)

Nebula970afd8506d7
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
new file mode 100644
index 0000000..785f6e7
--- /dev/null
+++ b/.github/CODEOWNERS
@@ -0,0 +1,2 @@
+# All changes to main require review from @wrong-nebula
+* @wrong-nebula
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..26c8d9d
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,42 @@
+name: CI
+
+on:
+ pull_request:
+ branches: [main]
+ push:
+ branches: [main]
+
+concurrency:
+ group: ci-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ rust-tests:
+ name: Rust tests
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: dtolnay/rust-toolchain@stable
+ - uses: Swatinem/rust-cache@v2
+ - name: Run Rust workspace test suite
+ run: >
+ cargo test --locked --release
+ -p forma-core -p forma-lang -p forma-cli -p forma-mcp -p forma-server
+ -- --skip test_10000_fuzzed_modeling_operations_zero_crashes_zero_nans
+
+ wasm-npm-smoke:
+ name: WASM & npm smoke
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ - uses: dtolnay/rust-toolchain@stable
+ with:
+ targets: wasm32-unknown-unknown
+ - uses: Swatinem/rust-cache@v2
+ - name: Install Binaryen (wasm-opt)
+ run: sudo apt-get update && sudo apt-get install -y binaryen
+ - name: Build WASM and run npm smoke tests
+ run: npm run build:wasm && npm test