Skip to content

Commit

Permalink
update github actions (checkout, setup-go, golangci-lint-action, gofm…
Browse files Browse the repository at this point in the history
…t-action) to the latest version
  • Loading branch information
petracihalova committed Jul 4, 2024
1 parent b2a8c5c commit 03854fc
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,34 @@ 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/[email protected].4
go-version: "1.18"
- uses: Jerome1337/[email protected].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 ./...
golangci:
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

0 comments on commit 03854fc

Please sign in to comment.