Add architecture diagrams and move screenshots to assets #272
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: Code Quality Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| jobs: | |
| rust-format-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| toolchain: nightly | |
| components: rustfmt | |
| - name: Check Rust version | |
| run: rustc --version | |
| - name: Check Rust code formatting | |
| run: cargo fmt -- --check | |
| c-format-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install clang-format | |
| run: sudo apt-get update && sudo apt-get install -y clang-format-18 | |
| - name: Check C code formatting | |
| run: | | |
| clang-format-18 --version | |
| find landscape-ebpf/src/bpf -type f \( -name '*.c' -o -name '*.h' \) \ | |
| ! -name 'vmlinux.h' \ | |
| -print0 | xargs -0 clang-format-18 --dry-run --Werror | |
| frontend-format-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Check frontend code formatting | |
| run: pnpm --filter landscape-webui exec prettier --check "src/**/*.{vue,ts,js,json,css,scss}" |