Update my_token_tests.move #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Move Build & Test (Aptos) | |
| on: [push, pull_request] | |
| jobs: | |
| move: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install deps | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y curl python3 | |
| - name: Install Aptos CLI | |
| run: | | |
| curl -fsSL https://aptos.dev/scripts/install_cli.py | python3 | |
| which aptos || true | |
| aptos --version || true | |
| - name: Compile MyToken (capture log, don't fail) | |
| run: | | |
| cd mytoken | |
| set -o pipefail | |
| (aptos move compile --save-metadata --bytecode-version 6 2>&1 | tee compile.log) || true | |
| - name: Compile Escrow (capture log, don't fail) | |
| run: | | |
| cd escrow | |
| set -o pipefail | |
| (aptos move compile --save-metadata --bytecode-version 6 2>&1 | tee compile.log) || true | |
| - name: Compile SimpleNFT (capture log, don't fail) | |
| run: | | |
| cd simplenft | |
| set -o pipefail | |
| (aptos move compile --save-metadata --bytecode-version 6 2>&1 | tee compile.log) || true | |
| - name: Test MyToken (allow failure) | |
| run: | | |
| cd mytoken | |
| (aptos move test 2>&1 | tee test.log) || true | |
| - name: Test Escrow (allow failure) | |
| run: | | |
| cd escrow | |
| (aptos move test 2>&1 | tee test.log) || true | |
| - name: Test SimpleNFT (allow failure) | |
| run: | | |
| cd simplenft | |
| (aptos move test 2>&1 | tee test.log) || true | |
| - name: Upload logs as artifact | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: move-logs | |
| path: | | |
| mytoken/compile.log | |
| mytoken/test.log | |
| escrow/compile.log | |
| escrow/test.log | |
| simplenft/compile.log | |
| simplenft/test.log | |
| if-no-files-found: ignore |