forked from maticnetwork/genesis-contracts
-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (30 loc) · 792 Bytes
/
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
name: CI
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update Path
run: echo "$RUNNER_WORKSPACE/$(basename $GITHUB_REPOSITORY)" >> $GITHUB_PATH # Make it accessible from runner
- name: Install solc
run: |
set -x
wget -c https://github.com/ethereum/solidity/releases/download/v0.5.12/solc-static-linux
mv solc-static-linux solc
chmod +x solc
solc --version
- name: Setup Node.js environment
uses: actions/setup-node@v1.4.4
- name: Generate genesis file
run: bash generate.sh 15001 heimdall-15001
- name: Run tests
run: npm run test:ci