Skip to content

Commit

Permalink
build(ci): get go version from go.mod (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
peakji authored Apr 18, 2024
1 parent b5af836 commit f54eb84
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit f54eb84

Please sign in to comment.