mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
chore: build with go1.20.1
This commit is contained in:
parent
a97100f936
commit
ecf765191b
2
.github/workflows/code.yml
vendored
2
.github/workflows/code.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: 1.20.1
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
||||||
- name: Golang CI
|
- name: Golang CI
|
||||||
|
|
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
||||||
with:
|
with:
|
||||||
go-version: 1.18
|
go-version: 1.20.1
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
|
|
@ -9,7 +9,7 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go 🚀
|
- name: Install Go 🚀
|
||||||
env:
|
env:
|
||||||
VERSION: "1.19.6"
|
VERSION: "1.20.1"
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
# Delete conflicting go versions first
|
# Delete conflicting go versions first
|
||||||
|
|
2
.github/workflows/docs.yml
vendored
2
.github/workflows/docs.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
||||||
with:
|
with:
|
||||||
go-version: 1.18
|
go-version: 1.20.1
|
||||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
|
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
|
||||||
with:
|
with:
|
||||||
node-version: 17.6.0
|
node-version: 17.6.0
|
||||||
|
|
2
.github/workflows/gomod.yml
vendored
2
.github/workflows/gomod.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: 1.20.1
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
|
||||||
- name: Check for unused dependencies
|
- name: Check for unused dependencies
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/jandedobbeleer/oh-my-posh/src
|
module github.com/jandedobbeleer/oh-my-posh/src
|
||||||
|
|
||||||
go 1.19
|
go 1.20
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161
|
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161
|
||||||
|
|
|
@ -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.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 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: "no go.mod file fallback", ParseModFile: true, ExpectedString: "1.16", Version: "go version go1.16 darwin/amd64"},
|
||||||
{
|
{
|
||||||
Case: "invalid go.mod file fallback",
|
Case: "invalid go.mod file fallback",
|
||||||
|
|
Loading…
Reference in a new issue