Skip to content

Commit

Permalink
.github: add CI job to check RPC bindings can be compiled
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Shaleva <anna@nspcc.ru>
  • Loading branch information
AnnaShaleva committed Jun 9, 2023
1 parent 1b7f0f3 commit 3141c6b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/config/.rpcbindings_golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
issues:
exclude-rules:
- linters:
- unused # RPC bindings are allowed to contain some unused convertors.
21 changes: 21 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,24 @@ jobs:

- name: Compile contracts
run: make build

build_bindings:
name: Build RPC bindings
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.18'

- name: Compile contracts and generate RPC bindings
run: make build

- name: Run linter on RPC bindings
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --config=.github/workflows/config/.rpcbindings_golangci.yml

0 comments on commit 3141c6b

Please sign in to comment.