Skip to content

Update move-ci.yml #139

Update move-ci.yml

Update move-ci.yml #139

Workflow file for this run

name: Move Build & Test (Aptos)

Check failure on line 1 in .github/workflows/move-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/move-ci.yml

Invalid workflow file

(Line: 17, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory, (Line: 19, Col: 5): Unexpected value 'GH_TOKEN', (Line: 20, Col: 5): Unexpected value 'GITHUB_TOKEN', (Line: 19, Col: 5): There's not enough info to determine what you meant. Add one of these properties: cancel-timeout-minutes, container, continue-on-error, defaults, env, environment, outputs, runs-on, secrets, services, snapshot, steps, timeout-minutes, uses, with, (Line: 21, Col: 8): Unexpected value 'set -euo pipefail # ретрай с экспоненциальной задержкой, если вдруг API снова вернёт 403 for i in 0 1 2 3; do if curl -sSL "https://aptos.dev/scripts/install_cli.py" | python3; then break fi echo "Install failed, retry in $((2**i))s..." sleep $((2**i)) done echo "$HOME/.local/bin" >> $GITHUB_PATH aptos --version - name: Static sanity checks run: | set -euo pipefail # 1) нет [...]
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
env:
GH_TOKEN: ${{ github.token }} # даём токен скрипту (снимает rate limit)
GITHUB_TOKEN: ${{ github.token }} # на всякий — оба названия переменных
run: |
set -euo pipefail
# ретрай с экспоненциальной задержкой, если вдруг API снова вернёт 403
for i in 0 1 2 3; do
if curl -sSL "https://aptos.dev/scripts/install_cli.py" | python3; then
break
fi
echo "Install failed, retry in $((2**i))s..."
sleep $((2**i))
done
echo "$HOME/.local/bin" >> $GITHUB_PATH
aptos --version
- name: Static sanity checks
run: |
set -euo pipefail
# 1) нет плейсхолдеров {{ADDR}} в коде проектов (игнорим build/, vendor/, .github/)
if grep -RIn --exclude-dir=build --exclude-dir=vendor --exclude-dir=.github '{{ADDR}}' mytoken escrow simplenft minimarket; then
echo 'ERROR: found {{ADDR}} placeholders'; exit 1; fi
# 2) в тестах не должно быть `use std::` (используем 0x1::)
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
echo 'ERROR: found std:: imports in tests; use 0x1::'; exit 1; fi
- name: Repo-wide build & tests
run: ./tools/check.sh