-
Notifications
You must be signed in to change notification settings - Fork 89
37 lines (30 loc) · 1.18 KB
/
aspect-test.yaml
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
name: Aspect Test
on:
push:
branches: [ ci_test ]
pull_request:
branches: [ ci_test ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Aspect Test
run: |
mkdir -p test_scripts
cat > test_scripts/init_env.sh <<EOF
source ~/.nvm/nvm.sh
set -ex
cd /aspect-tooling/packages/testcases
sed -i "s|\"node\": \".*\"|\"node\": \"http://47.254.27.97:8545\"|g" project.config.json && cat project.config.json
node scripts/create-account.cjs --skfile attack_accounts.txt
node scripts/create-account.cjs --skfile privateKey.txt
node scripts/create-account.cjs --skfile aspect_accounts.txt
# node scripts/transfer.cjs --skfile attack_accounts.txt
# node scripts/transfer.cjs --skfile privateKey.txt
# node scripts/transfer.cjs --skfile aspect_accounts.txt
# cd tests
# node type-check-aspect.test.js
EOF
chmod +x test_scripts/init_env.sh
docker run --name testenv -v $(pwd)/test_scripts:/test_scripts -id simonalphafang/aspect-tooling:0.0.3 /bin/bash -c /test_scripts/init_env.sh