forked from paritytech/libsecp256k1
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 1.04 KB
/
check-style.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
name: Check style
on:
pull_request:
push:
branches:
- master
- stable
tags:
- v*
paths-ignore:
- 'README.md'
jobs:
check-style:
name: Check style
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0
- name: Checkout sources & submodules
uses: actions/[email protected]
with:
fetch-depth: 5
submodules: recursive
- name: Install toolchain
uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
components: clippy, rustfmt
override: true
- name: Checking style
uses: actions-rs/[email protected]
with:
command: fmt
toolchain: stable
args: --all -- --check