Skip to content

fix(all): misc

fix(all): misc #29

Workflow file for this run

name: Lint backend
on:
push:
paths:
- '.github/workflows/lint-backend.yml'
- 'package.json'
- 'backend/**/*'
pull_request:
paths:
- '.github/workflows/lint-backend.yml'
- 'package.json'
- 'backend/**/*'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '20'
- name: Setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build frontend (since it's required to compile)
run: |
cd frontend
npm install
npm run build
cd ..
- name: Cargo format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path ./backend/Cargo.toml --all -- --check
- name: Cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path ./backend/Cargo.toml --all -- -D warnings