example; fix go build of rpc client example #74
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: GoTest | |
on: | |
push: | |
branches: [main, dev/2.0] | |
pull_request: | |
branches: [main, dev/2.0] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "stable" | |
- uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.60.1 | |
skip-cache: true | |
args: --timeout=2m --disable-all --enable=govet --tests=false ./... | |
- name: npm | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: solc | |
run: sudo npm install [email protected] -g | |
- name: abigen | |
run: go install github.com/ethereum/go-ethereum/cmd/abigen@latest | |
- name: jq | |
run: sudo apt-get install jq | |
- name: compileSolidity | |
run: solcjs --version && ls && cd test/cmds/ && go run compile_solidity.go && cd ../../ | |
- name: Build | |
run: | | |
export GO111MODULE=on | |
go mod tidy | |
make qng | |
- name: Test | |
run: | | |
PATH=$PATH:$(pwd)/build/bin | |
go test -v ./... |