chore: build with go1.20.1

This commit is contained in:
Jan De Dobbeleer 2023-03-04 17:13:28 +01:00 committed by Jan De Dobbeleer
parent a97100f936
commit ecf765191b
7 changed files with 7 additions and 7 deletions

View file

@ -22,7 +22,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version: 1.19
go-version: 1.20.1
- name: Checkout code
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- name: Golang CI

View file

@ -22,7 +22,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version: 1.18
go-version: 1.20.1
- name: Checkout code
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- name: Initialize CodeQL

View file

@ -9,7 +9,7 @@ runs:
steps:
- name: Install Go 🚀
env:
VERSION: "1.19.6"
VERSION: "1.20.1"
shell: pwsh
run: |
# Delete conflicting go versions first

View file

@ -20,7 +20,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version: 1.18
go-version: 1.20.1
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version: 17.6.0

View file

@ -12,7 +12,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version: 1.19
go-version: 1.20.1
- name: Checkout code
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- name: Check for unused dependencies

View file

@ -1,6 +1,6 @@
module github.com/jandedobbeleer/oh-my-posh/src
go 1.19
go 1.20
require (
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161

View file

@ -47,7 +47,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.19", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.19"},
{Case: "go.mod 1.20", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.20"},
{Case: "no go.mod file fallback", ParseModFile: true, ExpectedString: "1.16", Version: "go version go1.16 darwin/amd64"},
{
Case: "invalid go.mod file fallback",