Skip to content

Commit 862ebb8

Browse files
authored
Update move-ci.yml
1 parent 652e2e3 commit 862ebb8

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/move-ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,19 @@ jobs:
2020
echo "$HOME/.local/bin" >> $GITHUB_PATH
2121
aptos --version
2222
23-
- name: Static sanity checks
23+
- name: Static sanity checks
2424
run: |
2525
set -euo pipefail
26-
# 1) нет плейсхолдеров {{ADDR}} (игнорим build/ и vendor/)
27-
if grep -RIn --exclude-dir=build --exclude-dir=vendor '{{ADDR}}' .; then
26+
# 1) нет плейсхолдеров {{ADDR}} в коде проектов (игнорим build/, vendor/, .github/)
27+
if grep -RIn '{{ADDR}}' mytoken escrow simplenft minimarket \
28+
--exclude-dir=build --exclude-dir=vendor --exclude-dir=.github; then
2829
echo 'ERROR: found {{ADDR}} placeholders'; exit 1; fi
29-
# 2) в ТЕСТАХ не должно быть use std:: (игнорим build/ и vendor/)
30-
if ls */tests/*.move >/dev/null 2>&1; then
31-
if grep -RIn --include='*.move' --exclude-dir=build --exclude-dir=vendor 'use std::' */tests; then
32-
echo 'ERROR: found std:: imports in tests; use 0x1::'; exit 1; fi
33-
fi
30+
31+
# 2) в ТЕСТАХ не должно быть `use std::` (только 0x1::)
32+
if grep -RIn 'use std::' mytoken/tests escrow/tests simplenft/tests minimarket/tests \
33+
--include='*.move' --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github; then
34+
echo 'ERROR: found std:: imports in tests; use 0x1::'; exit 1; fi
35+
3436
3537
- name: Repo-wide build & tests
3638
run: ./tools/check.sh

0 commit comments

Comments
 (0)