diff options
| author | Jonathan <jonathan@mullvad.net> | 2022-06-30 15:07:00 +0200 |
|---|---|---|
| committer | Jonathan <jonathan@mullvad.net> | 2022-06-30 15:07:00 +0200 |
| commit | 786b27643a0bd963bb180cc0af92c0e0ea466966 (patch) | |
| tree | 7f36da93b19651557eddfc34be3a83678135d4ba /.github | |
| parent | 9d1fae38f7733627fa30f8446fd508507562ba04 (diff) | |
| parent | 30aa0b2b43030ce88f51c0f2d0906ab4e6e34c82 (diff) | |
| download | mullvadvpn-786b27643a0bd963bb180cc0af92c0e0ea466966.tar.xz mullvadvpn-786b27643a0bd963bb180cc0af92c0e0ea466966.zip | |
Merge branch 'clippy-ci-and-cleanup'
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/clippy.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml new file mode 100644 index 0000000000..0b76562513 --- /dev/null +++ b/.github/workflows/clippy.yml @@ -0,0 +1,37 @@ +name: Rust - Run Clippy to check lints +on: + # Check whenever a file that affects Clippy is changed in a pull request + pull_request: + paths: + - .github/workflows/clippy.yml + - ci/check-clippy.sh + - clippy.toml + - '**/*.rs' + # Check if requested manually from the Actions tab + workflow_dispatch: +jobs: + clippy_check: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Checkout binaries submodule + run: git submodule update --init --depth=1 dist-assets/binaries + + - uses: actions-rs/toolchain@v1.0.6 + with: + toolchain: stable + components: clippy + override: true + + - name: Install build dependencies + run: | + sudo apt-get update + sudo apt-get install libdbus-1-dev + + - name: Clippy check + run: | + export RUSTFLAGS="--deny warnings" + source env.sh + time cargo clippy --locked --verbose |
