diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c8ef3d4539..697669834f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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