Skip to content

Commit

Permalink
Merge pull request #135 from CoinFabrik/132-ignore-docs-on-ci
Browse files Browse the repository at this point in the history
132 ignore docs on ci
  • Loading branch information
tenuki authored Apr 16, 2024
2 parents 61aa901 + 2d79143 commit f48094c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/general-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- "detectors/**"
- "test-cases/**"
- "scripts/**"
paths-ignore:
- "detectors/**/*.md"
- "test-cases/**/*.md"

env:
CARGO_TERM_COLOR: always
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-detectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- "detectors/**"
- "test-cases/**"
- "scripts/**"
paths-ignore:
- "detectors/**/*.md"
- "test-cases/**/*.md"

env:
CARGO_TERM_COLOR: always
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ lint:

test:
@echo "\033[0;32m\n--> Running tests for test cases... \033[0m"
ifdef detector
@detector_name=$(detector); \
python3 scripts/run-tests.py --detector=$$detector_name;
else
@for dir in test-cases/*; do \
if [ -d "$$dir" ]; then \
detector_name=$$(basename "$$dir"); \
python3 scripts/run-tests.py --detector=$$detector_name; \
fi; \
done
endif

0 comments on commit f48094c

Please sign in to comment.