Skip to content

Commit

Permalink
Fix update-auto command & run it (trustwallet#20634)
Browse files Browse the repository at this point in the history
* Fix update-auto command & run it

* Upgrade go

* Fix log URI

* Add binance chain name mapping

* Update the dependency
  • Loading branch information
covain authored May 26, 2022
1 parent 85b815e commit 7d0393b
Show file tree
Hide file tree
Showing 12 changed files with 127 additions and 922 deletions.
2 changes: 1 addition & 1 deletion .github/assets.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ client_urls:
assets_manager_api: "https://api.assets.trustwallet.com"

urls:
assets_app: "https://assets.trustwallet.com"
assets_app: "https://assets-cdn.trustwallet.com"
logo: "https://trustwallet.com/assets/images/favicon.png"

time_format: "2006-01-02T15:04:05.000000"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
id: go

- name: Check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fix-dryrun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
id: go

- name: Check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
id: go

- name: Run fix
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/periodic-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
id: go

- name: Run update auto
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
id: go

- name: Check out code
Expand Down
16 changes: 5 additions & 11 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ linters-settings:
simplify: true
gofumpt:
# Select the Go version to target
lang-version: "1.17"
lang-version: "1.18"
extra-rules: false
goimports:
# put imports beginning with prefix after 3rd-party packages;
Expand Down Expand Up @@ -90,7 +90,7 @@ linters-settings:
- G101
gosimple:
# Select the Go version to target
go: "1.17"
go: "1.18"
# https://staticcheck.io/docs/options#checks
checks: [ "all" ]
govet:
Expand Down Expand Up @@ -150,12 +150,12 @@ linters-settings:
severity: error
staticcheck:
# Select the Go version to target
go: "1.17"
go: "1.18"
# https://staticcheck.io/docs/options#checks
checks: [ "all" ]
stylecheck:
# Select the Go version to target
go: "1.17"
go: "1.18"
# https://staticcheck.io/docs/options#checks
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022" ]
# https://staticcheck.io/docs/options#dot_import_whitelist
Expand All @@ -167,7 +167,7 @@ linters-settings:
http-status-code-whitelist: [ "200", "400", "404", "500" ]
unused:
# Select the Go version to target
go: "1.17"
go: "1.18"
whitespace:
multi-if: true # Enforces newlines (or comments) after every multi-line if statement
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
Expand Down Expand Up @@ -232,15 +232,9 @@ linters:
# - goerr113
# - nestif
- prealloc
- testpackage
# - revive
# - wsl

# don't enable:
# - interfacer
# - maligned
# - scopelint

output:
format: colored-line-number
print-issued-lines: true
Expand Down
Loading

0 comments on commit 7d0393b

Please sign in to comment.