Merge pull request #565 from DefiantLabs/pharr117/lens-updates-osmosi… #467
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: pre-commit checks | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
push: | |
branches: | |
- main | |
env: | |
GO_VERSION: '^1.19' | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- run: go version | |
- run: go install golang.org/x/tools/cmd/goimports@latest | |
- run: go install golang.org/x/lint/golint@latest | |
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s - -b $(go env GOPATH)/bin v1.51.2 | |
- run: echo "PATH=$PATH:/home/runner/go/bin" >> $GITHUB_ENV | |
- uses: pre-commit/[email protected] | |
- uses: pre-commit-ci/[email protected] | |
if: always() |