From 03854fcf3082fd9ee43ed7599677c6c9d7518566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petra=20C=CC=8Ci=CC=81halova=CC=81?= Date: Thu, 4 Jul 2024 16:19:31 +0200 Subject: [PATCH] update github actions (checkout, setup-go, golangci-lint-action, gofmt-action) to the latest version --- .github/workflows/actions.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 6d39636..69bf003 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -9,20 +9,20 @@ jobs: name: go fmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: "1.17" - - uses: Jerome1337/gofmt-action@v1.0.4 + go-version: "1.18" + - uses: Jerome1337/gofmt-action@v1.0.5 govet: name: go vet runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: "1.17" + go-version: "1.18" - run: | go vet ./... @@ -30,14 +30,13 @@ jobs: name: golangci-lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: "1.17" + go-version: "1.18" - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v6 with: version: latest only-new-issues: true - skip-go-installation: true args: --enable gci,bodyclose,forcetypeassert,misspell --timeout=5m