Skip to content
This repository was archived by the owner on Dec 24, 2024. It is now read-only.

Commit f9a0253

Browse files
committed
add clippy to CI
1 parent b976f66 commit f9a0253

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

.github/workflows/clippy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
branches: ["master"]
4+
pull_request:
5+
branches: ["master"]
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
name: Clippy
11+
jobs:
12+
clippy_check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v1
16+
- uses: actions-rs/toolchain@v1
17+
with:
18+
toolchain: nightly
19+
components: clippy
20+
override: true
21+
- uses: actions-rs/clippy-check@v1
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
args: --all-features

.github/workflows/rust.yml renamed to .github/workflows/tests.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: Rust
2-
31
on:
42
push:
53
branches: ["master"]
@@ -9,15 +7,14 @@ on:
97
env:
108
CARGO_TERM_COLOR: always
119

10+
name: Test
1211
jobs:
1312
lint:
1413
runs-on: ubuntu-latest
1514
steps:
1615
- uses: actions/checkout@master
1716
- id: component
1817
uses: actions-rs/components-nightly@v1
19-
with:
20-
component: clippy
2118
- uses: actions-rs/toolchain@v1
2219
with:
2320
toolchain: ${{ steps.component.outputs.toolchain }}

0 commit comments

Comments
 (0)