yolo(R9): add default interactive mode #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| jobs: | |
| rust-validate: | |
| name: Rust Validate (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - name: Build | |
| run: cargo build --workspace | |
| - name: Test | |
| run: cargo test --workspace | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets -- -D warnings | |
| packaging-validate: | |
| name: Packaging Validate | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Validate Shell Scripts | |
| run: | | |
| bash -n scripts/package-release.sh | |
| bash -n scripts/install-clawguard.sh | |
| bash -n scripts/uninstall-clawguard.sh | |
| - name: Validate npm Wrapper Logic | |
| run: node packages/npm/clawguard/scripts/test-install.js | |
| - name: Validate Release Signing Logic | |
| run: node scripts/test-release-package.js | |
| - name: Build Release Package | |
| run: VERSION=0.1.0-ci bash scripts/package-release.sh |