From a9fe8d795f44671b982d0d2a05022859750fef13 Mon Sep 17 00:00:00 2001 From: dido Date: Mon, 20 Oct 2025 09:25:51 +0200 Subject: [PATCH] fix: remove hardcoded Go version and use go.mod for versioning --- .github/workflows/go-test.yml | 5 +---- .github/workflows/release.yml | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 48afa2c..246bc46 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -6,9 +6,6 @@ on: pull_request: branches: [main] -env: - GO_VERSION: "1.25.1" - jobs: go-test: runs-on: ubuntu-latest @@ -19,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: go.mod - name: Run tests run: go tool task test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e7299a..43997aa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,6 @@ on: - "[0-9]+.[0-9]+.[0-9]+*" env: - GO_VERSION: "1.25.1" PROJECT_NAME: "arduino-flasher-cli" DIST_DIR: build @@ -50,7 +49,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ${{ env.GO_VERSION }} + go-version-file: go.mod - name: Build Binary run: go tool task build