Fix lint errors, format, and add a ci
alias to the justfile
#89
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: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [22.x] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 10.13.1 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "pnpm" | |
cache-dependency-path: "frontend/pnpm-lock.yaml" | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
- uses: taiki-e/install-action@just | |
- name: Install dependencies | |
run: just deps | |
- name: Lint project | |
run: just lint-ci | |
- name: Check formatting | |
run: just check-fmt |