chore: default to go 1.19

This commit is contained in:
Jan De Dobbeleer 2022-10-07 21:23:20 +02:00 committed by Jan De Dobbeleer
parent 7ecf111ad6
commit d4a3dbb721
4 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
with:
go-version: 1.18
go-version: 1.19
- name: Checkout code
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- name: Golang CI

View file

@ -12,7 +12,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
with:
go-version: 1.18
go-version: 1.19
- name: Checkout code
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
- name: Check for unused dependencies

View file

@ -1,6 +1,6 @@
module oh-my-posh
go 1.18
go 1.19
require (
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1

View file

@ -46,7 +46,7 @@ func TestGolang(t *testing.T) {
}{
{Case: "Go 1.15", ExpectedString: "1.15.8", Version: "go version go1.15.8 darwin/amd64"},
{Case: "Go 1.16", ExpectedString: "1.16", Version: "go version go1.16 darwin/amd64"},
{Case: "go.mod 1.18", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.18"},
{Case: "go.mod 1.19", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.19"},
{Case: "no go.mod file fallback", ParseModFile: true, ExpectedString: "1.16", Version: "go version go1.16 darwin/amd64"},
{
Case: "invalid go.mod file fallback",