Skip to content

Commit

Permalink
ci: update actions and golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored and catenacyber committed Nov 19, 2024
1 parent e84fb82 commit 7f3ce4e
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,16 @@ jobs:
runs-on: ubuntu-latest
env:
GO_VERSION: '1.20'
GOLANGCI_LINT_VERSION: v1.54.2
GOLANGCI_LINT_VERSION: v1.62.0
CGO_ENABLED: 0
steps:
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ^${{ env.GO_VERSION }}

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache Go modules
uses: actions/cache@v3
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: ^${{ env.GO_VERSION }}

- name: Check and get dependencies
run: |
Expand All @@ -40,4 +32,6 @@ jobs:
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}

- name: Make
run: make
run: |
make
git diff --exit-code

0 comments on commit 7f3ce4e

Please sign in to comment.