mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
---
|
|
name: Clippy
|
|
|
|
# Trigger the workflow on push or pull request
|
|
"on":
|
|
push:
|
|
branches-ignore:
|
|
- master
|
|
pull_request:
|
|
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
clippy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Restore our cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
- uses: actions/checkout@v3
|
|
- name: Update package manager
|
|
run: sudo apt-get update
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get install -y \
|
|
libpam0g-dev \
|
|
libudev-dev \
|
|
libssl-dev \
|
|
libsqlite3-dev \
|
|
pkg-config
|
|
|
|
# - name: Install Rust
|
|
# uses: actions-rs/toolchain@v1
|
|
# with:
|
|
# toolchain: stable
|
|
# override: true
|
|
# default: true
|
|
|
|
- name: "Run clippy (ignores errors, this is just a check)"
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: clippy
|
|
continue-on-error: true
|