Skip to content

Fix formatting and clippy errors #4

Fix formatting and clippy errors

Fix formatting and clippy errors #4

Workflow file for this run

name: backend
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
ci:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- name: Install nettle
run: |
sudo apt-get update
sudo apt-get install -y nettle-dev
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --check
- name: Check
run: cargo check
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::unwrap_used
# - name: Test (requires postgresql)
# run: cargo test