Bump github.com/cosmos/gogoproto from 1.4.12 to 1.7.0 #79
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: Lint | |
# **What it does**: Runs go linter when go files have been modified. | |
# | |
# **Why we have it**: Ensures all go files are properly formatted | |
# according to the lint configuration file. | |
# | |
# **What does it impact**: Code quality. | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
golangci: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read # for technote-space/get-diff-action to get git reference | |
strategy: | |
matrix: | |
module: [app] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: technote-space/get-diff-action@v6 | |
id: git-diff-app | |
with: | |
PATTERNS: | | |
app/**/**.go | |
go.mod | |
go.sum | |
if: matrix.module == 'app' | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
if: env.GIT_DIFF | |
- uses: golangci/golangci-lint-action@v6 | |
with: | |
args: --timeout=5m | |
working-directory: . | |
if: steps.git-diff-app.outputs.diff |