BUG:the problem with value referencing about 'for range' #1032
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: GoTest | |
on: | |
push: | |
branches: [ main,dev/1.2 ] | |
pull_request: | |
branches: [ main,dev/1.2 ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21.0 | |
- name: npm | |
run: sudo apt -y install nodejs | |
- name: solc | |
run: sudo npm install [email protected] -g | |
- name: git | |
run: sudo apt install git | |
- name: abigen | |
run: git clone https://github.com/Qitmeer/go-ethereum.git && cd go-ethereum && git checkout v1.10.21-q.1 && cd cmd/abigen && go build && sudo cp abigen /usr/local/bin/ && cd ../../.. | |
- name: compileSolidity | |
run: solcjs --version && ls && cd testutils/cmds/ && sudo go run compile_solidity.go && cd ../../ | |
- name: linter | |
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2 | |
- name: Build | |
run: | | |
export GO111MODULE=on | |
go mod tidy -compat=1.21 | |
make qng | |
- name: BaseTest | |
run: | | |
PATH=$PATH:$(pwd)/build/bin | |
go test basetest/base_test.go | |
- name: Test | |
run: | | |
PATH=$PATH:$(pwd)/build/bin | |
go test -v ./... | |
- name: Run ci.sh | |
env: | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
run: ./ci.sh |