Skip to content

workflows: cleanup

workflows: cleanup #61

Workflow file for this run

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'
- name: install abigen
run: go install github.com/ethereum/go-ethereum/cmd/abigen@latest
- name: npm
uses: actions/setup-node@v4
with:
node-version: 20
- name: solc
run: sudo npm install [email protected] -g
- name: compileSolidity
run: solcjs --version && ls && cd testutils/cmds/ && go run compile_solidity.go && cd ../../
- name: linter-install
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.60.1
- name: linter
run: golangci-lint --version && golangci-lint run -v --timeout=2m --disable-all --enable=govet --tests=false ./...
- name: Build
run: |
export GO111MODULE=on
go mod tidy
make qng
- name: Test
run: |
PATH=$PATH:$(pwd)/build/bin
go test -v ./...