Skip to content

Commit

Permalink
upgrade go version to 1.20and add more go version for linux ci.
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Liang <gcslyp@gmail.com>
  • Loading branch information
liangyuanpeng committed Aug 19, 2024
1 parent a058def commit d036090
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main_darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.18
go-version-file: 'go.mod'

- run: go version
- run: go env
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/main_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ on:
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.20', '1.21', '1.22', '1.23' ]
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go 1.18
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.18
go-version: ${{ matrix.go-version }}
- run: go version
- run: go env
- run: go test ./...
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.18
go-version-file: 'go.mod'

- run: go version
- run: go env
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go 1.18
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.18
go-version-file: 'go.mod'
- run: go version
- run: go env
- run: go test ./...
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module kcl-lang.io/kcl-openapi

go 1.18
go 1.20

require (
github.com/go-openapi/analysis v0.21.2
Expand Down

0 comments on commit d036090

Please sign in to comment.