Skip to content

Commit

Permalink
add grep check
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemchik542 committed Oct 26, 2024
1 parent f62e1c4 commit dc6e542
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
if: steps.linter-setup.conclusion == 'success' && !cancelled()
run: |
bash tools/ci/check_grep.sh
bash massmeta/tools/massmeta_check_grep.sh # MASSMETA EDIT ADDITION - checking modular_meta code
bash modular_meta/tools/massmeta_check_grep.sh # MASSMETA EDIT ADDITION - checking modular_meta code
- name: Ticked File Enforcement
if: steps.linter-setup.conclusion == 'success' && !cancelled()
run: |
Expand Down
20 changes: 20 additions & 0 deletions modular_meta/tools/massmeta_check_grep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

#ANSI Escape Codes for colors to increase contrast of errors
RED="\033[0;31m"
GREEN="\033[0;32m"
BLUE="\033[0;34m"
NC="\033[0m" # No Color

echo -e "${BLUE}Re-running grep checks, but looking in modular_meta/...${NC}"

# Run the linters again, but modular massmeta code (features).
sed 's/code\/\*\*\/\*\*.dm/modular_meta\/features\/\*\*\/\*\*.dm/g' <tools/ci/check_grep.sh | bash

echo -e "${BLUE}Re-running grep checks, but looking in modular_meta/master_files/...${NC}"

# Run the linters again, but modular massmeta code (perevody = translations).
sed 's/code\/\*\*\/\*\*.dm/modular_meta\/perevody\/\*\*\/\*\*.dm/g' <tools/ci/check_grep.sh | bash

# Run the linters again, but modular massmeta code (reverts).
sed 's/code\/\*\*\/\*\*.dm/modular_meta\/reverts\/\*\*\/\*\*.dm/g' <tools/ci/check_grep.sh | bash

0 comments on commit dc6e542

Please sign in to comment.