mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
chore: default to go 1.19
This commit is contained in:
parent
7ecf111ad6
commit
d4a3dbb721
2
.github/workflows/code.yml
vendored
2
.github/workflows/code.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/gomod.yml
vendored
2
.github/workflows/gomod.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue