Convert to vite #7
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 | |
| - pull_request | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| backend: | |
| runs-on: ubuntu-24.04-arm | |
| defaults: | |
| run: | |
| working-directory: backend | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| run: rustup update stable | |
| - name: Cache Rust build | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "backend -> target" | |
| - name: Build the project | |
| run: cargo build | |
| - name: Lint the project | |
| run: cargo clippy -- -A unused_variables | |
| - name: Run tests | |
| run: cargo test | |
| frontend: | |
| runs-on: ubuntu-24.04-arm | |
| defaults: | |
| run: | |
| working-directory: react-app | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "22.x" | |
| cache: "npm" | |
| cache-dependency-path: "react-app/package-lock.json" | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Build | |
| run: npm run build | |
| - name: Lint | |
| run: npm exec biome lint |