-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (52 loc) · 1.68 KB
/
main.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
name: CI
on:
- pull_request
env:
API_URL: "ws://127.0.0.1:9947"
TEST_PALLET_ADDRESS: ${{ secrets.TEST_PALLET_ADDRESS }}
TEST_SUDO_NAME: ${{ secrets.TEST_SUDO_NAME }}
TX_VERBOSE: true
jobs:
complete-setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone mangata node repository
uses: actions/checkout@v3
with:
repository: mangata-finance/mangata-node
path: mangata-repo
ref: develop
- name: Setup Node version and cache dependencies
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
- name: Install WASM toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: wasm32-unknown-unknown
- name: Replace parachain docker image reference in config
working-directory: mangata-repo/devops/parachain-launch
run: sed -i 's+mangatasolutions/mangata-node:.*+mangatasolutions/mangata-node:develop-fast+g' config.yml
- name: Generate the config
working-directory: mangata-repo/devops/parachain-launch
run: npx @open-web3/parachain-launch generate config.yml
- name: Run the Node
working-directory: mangata-repo/devops/parachain-launch/output
run: |
docker-compose up -d --build
docker ps
- name: Sleep for 3 minutes
run: sleep 180s
- name: Install deps
run: yarn install --frozen-lockfile
- name: Install peer deps
run: yarn peer
- name: Lint
run: yarn eslint
- name: Build the SDK
run: yarn build
- name: Run tests
run: yarn test