Skip to content

Update move-ci.yml

Update move-ci.yml #78

Workflow file for this run

name: Move Build & Test (Aptos)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Aptos CLI
run: |
curl -sSL "https://aptos.dev/scripts/install_cli.py" | python3
echo "$HOME/.local/bin" >> $GITHUB_PATH
aptos --version
- name: Static sanity checks
run: |
set -euo pipefail
# 1) плейсхолдеров {{ADDR}} быть не должно (игнорим build/ и vendor/)
! grep -RIn '{{ADDR}}' -- . --exclude-dir=build --exclude-dir=vendor || (echo 'ERROR: found {{ADDR}} placeholders' && exit 1)
# 2) в ТЕСТАХ запрещаем std:: (в сорцах допустимо, если есть [addresses] std="0x1")
! grep -RIn 'use std::' -- */tests --include='*.move' --exclude-dir=build --exclude-dir=vendor || (echo 'ERROR: found std:: imports in tests; use 0x1::' && exit 1)
- name: Repo-wide build & tests
run: ./tools/check.s