-
Notifications
You must be signed in to change notification settings - Fork 39
55 lines (48 loc) · 1.46 KB
/
build-pr.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
name: Build PR
# Builds and runs tests on each push to a branch PR'ed against main.
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'design/**'
- 'planning/**'
branches:
- main
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install abigen
run: |
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum-dev
- name: Install dependencies
run: cd contracts && npm install
- name: Hardhat test
run: cd contracts && npx hardhat generate-abi-bindings --output-dir generated
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17.8
# Makes sure the artifacts are built correctly
- name: Build
run: go build -v ./...
- name: Test
run: go test --failfast -v ./... -count=1
env:
USE_GETH_BINARY: true
- name: Store simulation logs
uses: actions/upload-artifact@v3
with:
name: ci-logs
path: |
integration/.build/simulations/sim-log-*.txt
integration/.build/noderunner/noderunner-*.txt
integration/.build/wallet_extension/wal-ext-*.txt
integration/.build/eth2/*
if: always() # Ensures the artifacts are created even if the tests fail.