Skip to content

Commit 146e382

Browse files
authored
[ci] Install ripgrep dependency (#2514)
gherrit-pr-id: I3d8bc60639db3aab2668e23b680d01ca0d32efc4
1 parent 6b8562d commit 146e382

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,10 @@ jobs:
778778
runs-on: ubuntu-latest
779779
name: Check for todo comments
780780
steps:
781+
- name: Install ripgrep
782+
run: |
783+
sudo apt-get update
784+
sudo apt-get install ripgrep
781785
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
782786
- name: Run todo check
783787
run: ./ci/check_todo.sh
@@ -788,6 +792,10 @@ jobs:
788792
steps:
789793
- name: Install yq (for YAML parsing)
790794
run: go install github.com/mikefarah/yq/v4@latest
795+
- name: Install ripgrep
796+
run: |
797+
sudo apt-get update
798+
sudo apt-get install ripgrep
791799
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
792800
- name: Run dependency check
793801
# Ensure that Git hooks execute successfully.

ci/check_todo.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ set -euo pipefail
1616
# would mean that we couldn't use XODO comments in this script.
1717
KEYWORD=$(echo XODO | sed -e 's/X/T/')
1818

19+
# Make sure `rg` is installed (if this fails, `set -e` above will cause the
20+
# script to exit).
21+
rg --version >/dev/null
22+
1923
# -H: Print filename (default for multiple files/recursive)
2024
# -n: Print line number
2125
# -w: Match whole words

0 commit comments

Comments
 (0)