-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (52 loc) · 1.93 KB
/
ci.yml
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
66
67
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node and Move Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
# env:
# RUST_BACKTRACE=1
# # ROOCH_ORACLE_ADDRESS= ${{ secrets.ROOCH_ORACLE_ADDRESS }}
# # ROOCH_PRIVATE_KEY= ${{ secrets.ROOCH_PRIVATE_KEY }}
strategy:
matrix:
node-version: [20.x]
steps:
# - name: Install latest nightly
# uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly
# override: true
# components: rustfmt, clippy
- name: Download ROOCH and APTOS
run: |
wget https://github.com/rooch-network/rooch/releases/latest/download/rooch-ubuntu-22.04.zip
wget -qO- "https://aptos.dev/scripts/install_cli.py" | python3
echo "Download completed"
- name: Install Rooch
run: |
unzip rooch-ubuntu-22.04.zip
sudo cp rooch-artifacts/rooch /usr/local/bin
rooch --version
echo "Installation completed"
- name: Use Node.js ${{ matrix.node-version }} 🛎️
uses: actions/checkout@v3
with:
node-version: ${{ matrix.node-version }}
persist-credentials: false
- name: Install 🔧 dependencies
run: npx yarn install
- name: build
run: npx yarn build
- name: Run rooch test
run: |
rooch init --config-dir ./${{ runner.temp }} --skip-password --password test
rooch move test -p ./rooch --config-dir ./${{ runner.temp }} --dev -v
# - name: Run aptos test
# run: |
# aptos init --network devnet --assume-yes