Makefile: generate RPC bindings #381
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18 | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
args: --config=.github/workflows/config/.golangci.yml | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go_versions: [ '1.18', '1.19', '1.20' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '${{ matrix.go_versions }}' | |
- name: Test | |
run: go test -v ./... | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go_versions: [ '1.18', '1.19', '1.20' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '${{ matrix.go_versions }}' | |
- 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/.golangci.yml |