Skip to content

Commit f9df06a

Browse files
Use specialized Clippy action (#126)
Use specific GH Action for Clippy checks
1 parent 32352c6 commit f9df06a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/rust.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Checkout sources
1515
uses: actions/checkout@v2
16-
16+
1717
- name: Download OVMF
1818
run: |
1919
# Save the current branch
@@ -29,10 +29,10 @@ jobs:
2929
git checkout travis-temp
3030
# Move the firmware files to the right directory
3131
mv -v *.fd uefi-test-runner
32-
32+
3333
- name: Install qemu
3434
run: sudo apt-get install qemu -y
35-
35+
3636
- name: Install latest nightly
3737
uses: actions-rs/toolchain@v1
3838
with:
@@ -52,7 +52,7 @@ jobs:
5252
- name: Run tests
5353
run: ./build.py run --headless
5454
working-directory: ./uefi-test-runner
55-
55+
5656
lints:
5757
name: Lints
5858
runs-on: ubuntu-latest
@@ -63,18 +63,17 @@ jobs:
6363
- name: Install latest nightly
6464
uses: actions-rs/toolchain@v1
6565
with:
66+
profile: minimal
6667
toolchain: nightly
67-
override: true
6868
components: rustfmt, clippy
69+
override: true
6970

7071
- name: Run cargo fmt
7172
uses: actions-rs/cargo@v1
7273
with:
7374
command: fmt
7475
args: --all -- --check
7576

76-
- name: Run cargo clippy
77-
uses: actions-rs/cargo@v1
77+
- uses: actions-rs/clippy-check@v1
7878
with:
79-
command: clippy
80-
args: -- -D warnings
79+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)