Or 1257 update smart contracts for deposit ton in l1 #112
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: Check Go lint | |
on: | |
pull_request: | |
paths: | |
- '**/*.go' | |
jobs: | |
go-lint: | |
runs-on: ubuntu-latest | |
container: | |
image: onthertech/titan-ci-builder:latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Add repository to git safe directories | |
run: git config --global --add safe.directory $GITHUB_WORKSPACE | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
- name: Go mod tidy | |
run: make mod-tidy && git diff --exit-code | |
- name: GolangCI Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54 | |
args: -E goimports,sqlclosecheck,bodyclose,asciicheck,misspell,errorlint --timeout 5m -e "errors.As" -e "errors.Is" ./... | |
env: | |
GOFLAGS: "-buildvcs=false" |