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