Appease clippy #13
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: 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: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: backend | |
- name: Install nettle | |
run: | | |
sudo apt-get update | |
sudo apt install clang llvm pkg-config nettle-dev | |
- 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 |