From f54eb8449631afc5abf70989020a59b10cb825ad Mon Sep 17 00:00:00 2001 From: Yichao 'Peak' Ji Date: Thu, 18 Apr 2024 17:42:48 +0800 Subject: [PATCH] build(ci): get go version from go.mod (#166) --- .github/workflows/go.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c7aa1c3..75b2213 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -8,11 +8,8 @@ on: jobs: test: - name: ${{ matrix.go-version }} + name: test runs-on: ubuntu-latest - strategy: - matrix: - go-version: ["1.22"] defaults: run: working-directory: main @@ -24,7 +21,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: ${{ matrix.go-version }} + go-version-file: "main/go.mod" check-latest: true cache: true cache-dependency-path: "main/go.sum"