Skip to content

Commit

Permalink
See if we can run cargo clippy and rustfmt as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Apr 12, 2020
1 parent 6765b42 commit c90687d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cross-platform-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,18 @@ jobs:
profile: minimal
override: true
target: ${{ matrix.target }}
components: rustfmt, clippy

- name: Show command used for Cargo
if: success()
run: |
echo "cargo command is: ${{ env.CARGO }}"
echo "target flag is: ${{ env.TARGET_FLAGS }}"
echo "target dir is: ${{ env.TARGET_DIR }}"
- name: Run tests
if: success()
run: ${{ env.CARGO }} test ${{ env.TARGET_FLAGS }}
- name: Run fmt
run: ${{ env.CARGO }} fmt ${{ env.TARGET_FLAGS }} --all -- --check
- name: Run clippy
run: ${{ env.CARGO }} clippy ${{ env.TARGET_FLAGS }}

0 comments on commit c90687d

Please sign in to comment.