fix: address settings consolidation #174
Workflow file for this run
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: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: | |
| - main | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-and-test: | |
| name: Lint and Test | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTC_WRAPPER: sccache | |
| SCCACHE_GHA_ENABLED: "true" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install System Dependencies (protoc) | |
| run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
| # pnpm must be installed BEFORE setup-node so that | |
| # setup-node can detect the pnpm store path for caching. | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 10 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| cache-dependency-path: 'studio/web/pnpm-lock.yaml' | |
| - name: Cache Cargo Registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-registry- | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: Set up sccache | |
| uses: mozilla-actions/[email protected] | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| # uv resolves Python from pyproject.toml requires-python; | |
| # no separate setup-python step needed. | |
| python-version: "3.12" | |
| - name: Cache Python venv | |
| uses: actions/cache@v5 | |
| with: | |
| path: studio/api/.venv | |
| key: ${{ runner.os }}-venv-${{ hashFiles('studio/api/uv.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-venv- | |
| - name: Install Python dependencies | |
| working-directory: studio/api | |
| run: uv sync | |
| - name: Install Web dependencies | |
| working-directory: studio/web | |
| run: pnpm install --frozen-lockfile | |
| - name: Generate Proto Stubs | |
| run: make proto | |
| - name: Run Lint | |
| run: make lint | |
| - name: Run Tests | |
| run: make test |