-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 860 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
# SPDX-FileCopyrightText: 2023 The WAG development team
#
# SPDX-License-Identifier: CC0-1.0
name: Lint the project
on: [push, pull_request]
jobs:
reuse:
name: Lint with REUSE
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v3
clippy:
name: Lint with Clippy
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Clippy
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Add caching
uses: Swatinem/rust-cache@v2
- name: Lint Rust code
run: cargo clippy --all-targets --all-features -- -D warnings