diff --git a/.github/workflows/minimal-ci.yml b/.github/workflows/minimal-ci.yml index d804c6feb..7c3cf378d 100644 --- a/.github/workflows/minimal-ci.yml +++ b/.github/workflows/minimal-ci.yml @@ -12,6 +12,8 @@ env: # Don't use more features like "gdnative_bindings_generator/debug" to keep CI truly minimal GDRUST_FEATURES: "gdnative/async,gdnative/serde" + RIPGREP_VERSION: "13.0.0" + on: pull_request: branches: @@ -52,6 +54,19 @@ jobs: - name: "Check clippy" run: cargo clippy --workspace --features ${GDRUST_FEATURES} -- -D clippy::style -D clippy::complexity -D clippy::perf -D clippy::dbg_macro -D clippy::todo -D clippy::unimplemented + check-todo: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: "Install ripgrep" + run: | + cd /tmp + wget --no-verbose https://github.com/BurntSushi/ripgrep/releases/download/${RIPGREP_VERSION}/ripgrep-${RIPGREP_VERSION}-x86_64-unknown-linux-musl.tar.gz -O ripgrep.tar.gz + tar -zxvf ripgrep.tar.gz + sudo mv ripgrep-${RIPGREP_VERSION}-x86_64-unknown-linux-musl/rg /usr/bin + - name: "Look for TODO comments without issue numbers attached to them" + run: sh tools/detect-todo.sh + unit-test: runs-on: ubuntu-latest steps: diff --git a/tools/detect-todo.sh b/tools/detect-todo.sh new file mode 100644 index 000000000..e49921fec --- /dev/null +++ b/tools/detect-todo.sh @@ -0,0 +1,75 @@ +#!/usr/bin/bash + +# Small utility to detect todo comments +# Used by godot-rust developers + +REGEX='(?