-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: fix the image to work with golangci-lint
In #195 I updated the Go version, and also swapped from Debian to Alpine for the base image. This was OK for the build, but it turns out we also use the same image to run golangci-lint. That action uses a binary for a different architecture, which fails on this image. So: - Keep the Go version, but revert the base image. - Add some documentation to the workflow configs.
- Loading branch information
1 parent
8882f27
commit 1f7f7c7
Showing
4 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,17 @@ on: | |
|
||
jobs: | ||
golangci: | ||
# We need to run the linter on the same image we use for building, since it | ||
# needs the C libraries installed for the dependencies to typecheck. | ||
runs-on: ubuntu-latest | ||
container: tendermintdev/docker-tm-db-testing | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: golangci/[email protected] | ||
with: | ||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. | ||
# Required: the version of golangci-lint is required and must be | ||
# specified without patch version: we always use the latest patch | ||
# version. | ||
version: v1.30 | ||
args: --timeout 10m | ||
github-token: ${{ secrets.github_token }} |
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