Skip to content

Commit c90687d

Browse files
committed
See if we can run cargo clippy and rustfmt as well
1 parent 6765b42 commit c90687d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/cross-platform-testing.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,18 @@ jobs:
6060
profile: minimal
6161
override: true
6262
target: ${{ matrix.target }}
63+
components: rustfmt, clippy
6364

6465
- name: Show command used for Cargo
65-
if: success()
6666
run: |
6767
echo "cargo command is: ${{ env.CARGO }}"
6868
echo "target flag is: ${{ env.TARGET_FLAGS }}"
6969
echo "target dir is: ${{ env.TARGET_DIR }}"
7070
7171
- name: Run tests
72-
if: success()
7372
run: ${{ env.CARGO }} test ${{ env.TARGET_FLAGS }}
73+
- name: Run fmt
74+
run: ${{ env.CARGO }} fmt ${{ env.TARGET_FLAGS }} --all -- --check
75+
- name: Run clippy
76+
run: ${{ env.CARGO }} clippy ${{ env.TARGET_FLAGS }}
7477

0 commit comments

Comments
 (0)