-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (59 loc) · 1.58 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
name: Testing Pipeline
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
jest:
name: Jest tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup dependencies
uses: actions/setup-node@v2
with:
node-version: "14"
cache: 'yarn'
cache-dependency-path: './yarn.lock'
- name: Install Git
run: sudo apt install git -y
- name: Install modules
run: yarn install
- name: Compile contracts for tests
run: yarn compile-for-test
- name: Start sandbox and wait for initialization
run: yarn start-sandbox && sleep 10s
- name: Test the contracts
run: yarn test
- name: Stop sandbox
run: yarn stop-sandbox
pytest:
name: Pytest tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "14"
cache: 'yarn'
cache-dependency-path: './yarn.lock'
- name: Set up Python
run: sudo apt install python pip
- name: Install crypto libs
run: sudo apt install libsodium-dev libsecp256k1-dev libgmp-dev
- name: Install pytezos and pytest
run: pip install pytezos pytest
- name: Install node modules
run: yarn install
- name: Compile contracts
run: yarn compile
- name: Run scenario tests
run: pytest -s -v