Skip to content

Merge pull request #1099 from SamTV12345/feat/middleware_testing #1590

Merge pull request #1099 from SamTV12345/feat/middleware_testing

Merge pull request #1099 from SamTV12345/feat/middleware_testing #1590

Workflow file for this run

on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
name: Lint rust
jobs:
cargolint:
name: Rust lint
runs-on: ubuntu-latest
steps:
- run: sudo apt install git
name: Install git
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Add required index.html
run: |
touch ./static/index.html
- name: Run cargo clippy
run: cargo clippy -- -D warnings