forked from statechannels/go-nitro
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.43 KB
/
bindings-check.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
name: Check Bindings and Lockfile
on:
push:
branches: [main]
pull_request:
paths: ["nitro-protocol/contracts/**", generate-adjudicator-bindings.sh]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install dependencies
run: |
cd ./nitro-protocol
npm ci --legacy-peer-deps
- name: make bin folder
run: |
mkdir -p $GITHUB_WORKSPACE/bin
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
- name: Install solc
run: |
curl -o solc https://binaries.soliditylang.org/linux-amd64/solc-linux-amd64-v0.8.17+commit.8df45f5f
mv solc $GITHUB_WORKSPACE/bin
sudo chmod +x $GITHUB_WORKSPACE/bin/solc
- name: Install abigen (part of go-ethereum)
run: |
curl -o geth.tar.gz https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-amd64-1.10.8-26675454.tar.gz
tar -xzf geth.tar.gz
mv geth-alltools-linux-amd64-1.10.8-26675454/abigen $GITHUB_WORKSPACE/bin
sudo chmod +x $GITHUB_WORKSPACE/bin/abigen
- name: Regenerate contract bindings
run: sh ./generate-adjudicator-bindings.sh
- name: check git tree is clean
# This will fail the job if any previous step (re)generated a file
# that doesn't match what you checked in (or forgot to check in)
run: git diff --exit-code