fix: shared ref #33
This file contains 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: 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 |