Merge pull request #56 from Jordonbc/dependabot/cargo/Dev/cargo-minor… #155
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: Dev CI (fast) | |
| on: | |
| push: | |
| branches: [ Dev ] | |
| paths: | |
| - 'Frontend/**' | |
| - 'Backend/**' | |
| - 'crates/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - '.github/workflows/development.yml' | |
| pull_request: | |
| branches: [ Dev ] | |
| paths: | |
| - 'Frontend/**' | |
| - 'Backend/**' | |
| - 'crates/**' | |
| - 'Cargo.toml' | |
| - 'Cargo.lock' | |
| - '.github/workflows/development.yml' | |
| concurrency: | |
| group: dev-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| dev: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| env: | |
| RUSTC_WRAPPER: sccache | |
| SCCACHE_GHA_ENABLED: 'true' | |
| SCCACHE_CACHE_SIZE: '2G' | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| # ---------- Frontend: lint + typecheck ---------- | |
| - name: Setup Node | |
| uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: Frontend/package-lock.json | |
| - name: Install frontend deps | |
| working-directory: Frontend | |
| run: npm ci --no-audit --no-fund | |
| - name: Lint | |
| working-directory: Frontend | |
| run: npm run lint --if-present | |
| - name: Typecheck | |
| working-directory: Frontend | |
| run: npm run typecheck --if-present | |
| # ---------- Backend: cargo check ---------- | |
| - name: Install Rust (stable) | |
| uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6 # stable | |
| - name: Setup sccache | |
| uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| - name: Install Linux build deps | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| libgtk-3-dev \ | |
| libglib2.0-dev \ | |
| libgdk-pixbuf-2.0-dev \ | |
| libpango1.0-dev \ | |
| libsoup-3.0-dev \ | |
| libwebkit2gtk-4.1-dev | |
| pkg-config --modversion javascriptcoregtk-4.1 | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1 | |
| - name: Cargo check | |
| run: cargo check |