Skip to content

Commit

Permalink
clean up ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorel-35 committed Nov 20, 2024
1 parent 7f3ce4e commit 4f4a90f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
main:
runs-on: ubuntu-latest
env:
GO_VERSION: '1.20'
GOLANGCI_LINT_VERSION: v1.62.0
CGO_ENABLED: 0
steps:
- name: Checkout code
Expand All @@ -20,18 +18,19 @@ jobs:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
with:
go-version: ^${{ env.GO_VERSION }}
go-version-file: go.mod

- name: Check and get dependencies
run: |
go mod tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
make tidy
git diff --exit-code go.mod go.sum
- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.62.0

- name: Make
run: |
make
make fmt test install
git diff --exit-code

0 comments on commit 4f4a90f

Please sign in to comment.