aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-03-17 17:41:44 -0500
committerToby Vincent <tobyv13@gmail.com>2022-03-17 17:41:44 -0500
commitaf0757f6259b95225ee4557d033a3d2dccc78998 (patch)
treef68682b31f252929164fdfffcafabb0a7e698c17 /.github/workflows
parent7b86e60c812edb14e148d877094e38c53a5c67a8 (diff)
ci: stop clippy-check from stopping CI
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml35
1 files changed, 21 insertions, 14 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7caced6..ad3537c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -34,32 +34,39 @@ jobs:
with:
command: test
- rustfmt:
+ lints:
+ name: Lints
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions-rs/toolchain@v1
+ - name: Checkout sources
+ uses: actions/checkout@v2
+
+ - name: Install stable toolchain
+ uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- components: rustfmt
- - uses: actions-rs/cargo@v1
+ components: rustfmt, clippy
+
+ - name: Run cargo fmt
+ uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- clippy:
+ - name: Run cargo clippy
+ uses: actions-rs/cargo@v1
+ with:
+ command: clippy
+ args: -- -D warnings
+
+ clippy_check:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
- components: clippy
+ - uses: actions/checkout@v1
+ - run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- args: --all-features -- -D warnings
+ args: --all-features \ No newline at end of file