grep for todo! and dbg! in check_commands and in CI
Some checks failed
Gentoo Utils / build-oci-image (push) Successful in 6s
Gentoo Utils / grep (push) Failing after 3s
Gentoo Utils / check-format (push) Successful in 7s
Gentoo Utils / docs (push) Successful in 12s
Gentoo Utils / build (push) Successful in 19s
Gentoo Utils / test (push) Successful in 26s
Some checks failed
Gentoo Utils / build-oci-image (push) Successful in 6s
Gentoo Utils / grep (push) Failing after 3s
Gentoo Utils / check-format (push) Successful in 7s
Gentoo Utils / docs (push) Successful in 12s
Gentoo Utils / build (push) Successful in 19s
Gentoo Utils / test (push) Successful in 26s
This commit is contained in:
@@ -153,3 +153,17 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
meson setup -Ddocs=enabled docs
|
meson setup -Ddocs=enabled docs
|
||||||
ninja rustdoc -C docs
|
ninja rustdoc -C docs
|
||||||
|
|
||||||
|
grep:
|
||||||
|
runs-on: brutalisk
|
||||||
|
needs: [build-oci-image]
|
||||||
|
container:
|
||||||
|
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
- name: grep for patterns
|
||||||
|
run: |
|
||||||
|
git grep 'todo!|dbg!' && exit 1
|
||||||
|
|
||||||
|
|||||||
@@ -3,3 +3,4 @@ ninja rustfmt -C build
|
|||||||
ninja rustdoc -C build
|
ninja rustdoc -C build
|
||||||
ninja clippy -C build
|
ninja clippy -C build
|
||||||
ninja test -C build
|
ninja test -C build
|
||||||
|
egrep 'todo!|dbg!' $(find src -type f -name '*.rs') && return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user