Skip to content

Commit 59d9767

Browse files
authored
Update move-ci.yml
1 parent 862ebb8 commit 59d9767

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/move-ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,15 @@ 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
2626
# 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
27+
if grep -RIn --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github '{{ADDR}}' mytoken escrow simplenft minimarket; then
2928
echo 'ERROR: found {{ADDR}} placeholders'; exit 1; 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
29+
# 2) в тестах не должно быть `use std::` (используем 0x1::)
30+
if grep -RIn --include='*.move' --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github 'use std::' mytoken/tests escrow/tests simplenft/tests minimarket/tests; then
3431
echo 'ERROR: found std:: imports in tests; use 0x1::'; exit 1; fi
3532
36-
3733
- name: Repo-wide build & tests
3834
run: ./tools/check.sh

0 commit comments

Comments
 (0)