Skip to content

Commit

Permalink
Add sanity check to tell us if we're using log::warn! directly
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Dec 20, 2022
1 parent efc84fd commit 1e2ff98
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ jobs:
run: |
./scripts/check-parity-bw-extrinsics-benchmarks-weights.sh
- name: Check for direct usage of log::warn vs. warn_or_panic in migrations
run: |
OUTPUT=$(find -wholename "*/migrations/*.rs" | xargs grep log::warn)
if [ -n "$OUTPUT" ]; then
echo "FAIL"
echo "$OUTPUT"
exit 1
fi
echo "PASS"
fmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1e2ff98

Please sign in to comment.