-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (40 loc) · 1.25 KB
/
clippy-runtime.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
39
40
41
42
43
name: Clippy-Runtime
on:
pull_request:
branches: [ master ]
paths:
- 'polkadot-parachains/integritee-kusama/**'
- 'polkadot-parachains/integritee-polkadot/**'
# cancel previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
clippy-runtimes:
runs-on: ubuntu-latest
strategy:
matrix:
runtime: [ "integritee-kusama", "integritee-polkadot" ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set rust version via common env file
run: cat .github/env >> $GITHUB_ENV
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Fetch cache
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0
with:
shared-key: "parachain-cache-clippy"
- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --manifest-path polkadot-parachains/${{ matrix.runtime }}/Cargo.toml
env:
# RUSTFLAGS: "-D warnings" # FAIL-CI
SKIP_WASM_BUILD: 1