-
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 1.84 KB
/
Copy pathmove-ci.yml
File metadata and controls
65 lines (55 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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