Skip to content

Use specialized Clippy action #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Download OVMF
run: |
# Save the current branch
Expand All @@ -29,10 +29,10 @@ jobs:
git checkout travis-temp
# Move the firmware files to the right directory
mv -v *.fd uefi-test-runner

- name: Install qemu
run: sudo apt-get install qemu -y

- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Run tests
run: ./build.py run --headless
working-directory: ./uefi-test-runner

lints:
name: Lints
runs-on: ubuntu-latest
Expand All @@ -63,18 +63,17 @@ jobs:
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
override: true

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

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