Merge pull request #128 from Open-VCS/Fixed-packaging-issue #291
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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| # ---------- Frontend: lint + typecheck ---------- | |
| - name: Setup Node | |
| uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.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 | |
| with: | |
| components: rustfmt, clippy | |
| - 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@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 | |
| - name: Cargo fmt (check) | |
| run: cargo fmt --all -- --check | |
| - name: Cargo clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: Cargo check | |
| run: cargo check | |
| - name: Install `just` | |
| run: | | |
| # Install `just` via cargo so it's available on the runner | |
| cargo install --locked just || true | |
| - name: Run `just test` | |
| run: | | |
| just --version || true | |
| just test |