Skip to content

Commit

Permalink
Try executing rustfmt only if it is present.
Browse files Browse the repository at this point in the history
  • Loading branch information
vakaras committed May 1, 2021
1 parent 5f70707 commit db9267b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
- name: Run cargo tests
run: cargo test --all --verbose
- name: Check formatting
run: cargo fmt -- --check
run: |
if rustfmt --help ; then
cargo fmt -- --check
fi
- name: Check extractor
run: python3 extractor-test/test_extractor.py
- name: Compile the example packages
Expand Down

0 comments on commit db9267b

Please sign in to comment.