Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush7833 committed Jun 9, 2024
1 parent ea1fd6a commit 93123a0
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 #checks project source code into the container
- uses: actions/setup-go@v4 #sets up go environment
with :
go-version: 1.22.2

- name: Install dependencies
run: go mod download

- name: lint code
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0
golangci-lint run
- uses: actions/checkout@v4 # Checks project source code into the container
- uses: actions/setup-go@v4 # Sets up Go environment
with:
go-version: 1.22.2 # Use a more stable version of Go

- name: Install dependencies
run: go mod download

- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
- name: Lint code
run: golangci-lint run

0 comments on commit 93123a0

Please sign in to comment.