-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (42 loc) · 1.18 KB
/
hardhat.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
name: Hardhat Tests
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
truffle_test:
name: Hardhat Tests
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Hardhat
working-directory: ./tests/test_hardhat
run: yarn install
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
sudo pip install --upgrade pip
sudo pip install -e .
- name: Init local chain
run: sudo tevmc init local
- name: Build containers
working-directory: local
run: sudo tevmc build
- name: Bootstrap
working-directory: local
run: sudo tevmc up && sudo tevmc wait-init
- name: Wait blocks
working-directory: local
run: sleep 60
- name: Run test_hardhat
working-directory: ./tests/test_hardhat
run: npx hardhat test