Skip to content

Commit

Permalink
fix: tooling lint issues/ci update
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Nguyen <[email protected]>
  • Loading branch information
mikeee committed Nov 7, 2024
1 parent 60dc6a8 commit 7240e2f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/dapr-bot/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/dapr/go-sdk/.github/workflows/dapr-bot

go 1.22

toolchain go1.22.0
go 1.23.3

require (
github.com/google/go-github/v55 v55.0.0
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-dapr-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
name: Test
runs-on: ubuntu-latest
env:
GOVER: ${{ matrix.gover }}
GOLANGCILINT_VER: v1.61.0

steps:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/test-tooling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@ jobs:
strategy:
fail-fast: false
matrix:
gover:
- "1.21"
- "1.22"
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
runs-on: ${{ matrix.os }}
env:
GOVER: ${{ matrix.gover }}
GOLANGCILINT_VER: v1.61.0 # Make sure to bump /tools/check-lint-version/main_test.go

steps:
Expand All @@ -38,7 +34,7 @@ jobs:
- name: Setup
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVER }}
go-version-file: ./tools/check-lint-version/go.mod

- name: Tidy
working-directory: ./tools/check-lint-version
Expand Down
4 changes: 1 addition & 3 deletions tools/check-lint-version/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/dapr/go-sdk/tools/check-lint-version

go 1.21

toolchain go1.21.6
go 1.23.3

require (
github.com/stretchr/testify v1.8.4
Expand Down
4 changes: 2 additions & 2 deletions tools/check-lint-version/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func getCurrentVersion() (string, error) {
if matches == nil {
return "", fmt.Errorf("no version found: %v", string(out))
}
return fmt.Sprintf("v%s", matches[1]), err
return "v" + matches[1], err
}

func isVersionValid(workflowVersion, currentVersion string) bool {
Expand All @@ -72,7 +72,7 @@ func compareVersions(path string) string {
if !validVersion {
return fmt.Sprintf("Invalid version, expected: %s, current: %s - See: https://golangci-lint.run/usage/install/ for instructions to update", workflowVersion, currentVersion)
}
return fmt.Sprintf("Linter version is valid (MajorMinor): %s", currentVersion)
return "Linter version is valid (MajorMinor): " + currentVersion
}

func main() {
Expand Down

0 comments on commit 7240e2f

Please sign in to comment.