-
Notifications
You must be signed in to change notification settings - Fork 7
68 lines (55 loc) · 1.46 KB
/
abigen.yaml
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
61
62
63
64
65
66
67
68
name: abigen
on:
workflow_dispatch:
pull_request:
push:
branches:
- "main"
paths:
- "abi/**"
- "abigen/**"
jobs:
gen-check:
name: "Check for abigen changes"
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: "Set up environment"
uses: ./.github/setup
- uses: actions/setup-go@v4
with:
go-version: "1.23"
- uses: extractions/setup-just@v2
- name: "Install abigen"
run: go install github.com/ethereum/go-ethereum/cmd/abigen@latest
- name: "Check that generating files from go does not create any changes"
uses: nickcharlton/diff-check@main
with:
command: just generate-abi
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.23"
cache-dependency-path: abigen/go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.61
working-directory: abigen
test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.23"
cache-dependency-path: abigen/go.sum
- name: "Unit test abigen"
run: cd abigen && go test -v ./...