-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 968 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
33
34
35
36
37
38
# Copyright 2024-2025 - Andriel Ferreira
#
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
# https:#www.apache.org/licenses/LICENSE-2.0> or the MIT license
# <LICENSE-MIT or https:#opensource.org/licenses/MIT>, at your
# option. This file may not be copied, modified, or distributed
# except according to those terms.
on: [push, pull_request]
name: Lint
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings