forked from CosmWasm/cosmwasm
-
Notifications
You must be signed in to change notification settings - Fork 15
38 lines (32 loc) · 941 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
on: [push, pull_request]
name: Linting
jobs:
lints:
name: ${{ matrix.make.name }} ${{ matrix.rust }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [1.60.0, stable]
make:
- name: Clippy
task: "cargo clippy"
env:
RUST_BACKTRACE: full
RUSTV: ${{ matrix.rust }}
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: ./.github/actions/install-rust
with:
toolchain: ${{ matrix.rust }}
- name: Add wasm toolchain
run: |
rustup target add --toolchain ${{ matrix.rust }} wasm32-unknown-unknown
- name: Install Clippy
if: matrix.make.name == 'Clippy'
run: |
rustup component add clippy
- name: ${{ matrix.make.name }}
run: ${{ matrix.make.task }}