-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (37 loc) · 1.14 KB
/
clippy.yaml
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
39
40
name: clippy
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
clippy:
strategy:
matrix:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: contract
steps:
- name: Install Rust nightly toolchain
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # v1.0.7
with:
profile: minimal
toolchain: nightly
target: wasm32-unknown-unknown
override: true
components: clippy
- name: Cache Dependencies & Build Outputs
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Run clippy
shell: bash
run: cargo +nightly clippy --verbose --no-default-features --target wasm32-unknown-unknown -- -D warnings