Skip to content

Commit

Permalink
Clippy Action Update (#54)
Browse files Browse the repository at this point in the history
* Updating Clippy Action to use annotations

* correcting down to one feature
  • Loading branch information
lucasbrendel authored and probot-auto-merge[bot] committed Oct 29, 2019
1 parent b43fde0 commit 962be25
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,17 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v1

- name: Install nightly toolchain with clippy available
uses: actions-rs/toolchain@v1
- uses: actions/checkout@v1
- id: component
uses: actions-rs/components-nightly@v1
with:
profile: minimal
toolchain: nightly
override: true
components: clippy

- name: Run cargo clippy
uses: actions-rs/cargo@v1
component: clippy
- uses: actions-rs/toolchain@v1
with:
command: clippy
args: --features xmc41xx -- -D warnings
toolchain: ${{ steps.component.outputs.toolchain }}
override: true
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GH_TOKEN }}
args: --features xmc41xx

0 comments on commit 962be25

Please sign in to comment.