Skip to content

Commit

Permalink
Upgrade to Go 1.21
Browse files Browse the repository at this point in the history
Remove golang-ci lint

Signed-off-by: Eric Chlebek <eric@sensu.io>
  • Loading branch information
echlebek committed Dec 7, 2023
1 parent 6e214d7 commit 6207aa5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 19 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.15.x
go-version: 1.21.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/static-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: static-check

on:
pull_request:
push:
tags:
- 'v*'
branches:
- main

jobs:
staticcheck:
name: staticcheck (project)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: dominikh/staticcheck-action@v1.0.0
with:
version: "2021.1.1"
env:
GO_VERSION: 1.21.5
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go 1.14
- name: Set up Go 1.21
uses: actions/setup-go@v1
with:
go-version: 1.14
go-version: 1.21
id: go
- name: Test
run: go test -v ./...

0 comments on commit 6207aa5

Please sign in to comment.