Skip to content

Commit 652e2e3

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

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/move-ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ jobs:
2323
- name: Static sanity checks
2424
run: |
2525
set -euo pipefail
26-
# 1) плейсхолдеров {{ADDR}} быть не должно (игнорим build/ и vendor/)
27-
! grep -RIn '{{ADDR}}' -- . --exclude-dir=build --exclude-dir=vendor || (echo 'ERROR: found {{ADDR}} placeholders' && exit 1)
28-
# 2) в ТЕСТАХ запрещаем std:: (в сорцах допустимо, если есть [addresses] std="0x1")
29-
! grep -RIn 'use std::' -- */tests --include='*.move' --exclude-dir=build --exclude-dir=vendor || (echo 'ERROR: found std:: imports in tests; use 0x1::' && exit 1)
26+
# 1) нет плейсхолдеров {{ADDR}} (игнорим build/ и vendor/)
27+
if grep -RIn --exclude-dir=build --exclude-dir=vendor '{{ADDR}}' .; then
28+
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
3034
3135
- name: Repo-wide build & tests
32-
run: ./tools/check.s
36+
run: ./tools/check.sh

0 commit comments

Comments
 (0)