-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
197 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
pull_request: | ||
|
||
env: | ||
GO_VERSION: 1.17 | ||
GO_VERSION: 1.18 | ||
|
||
jobs: | ||
# Check if there any dirty change for go mod tidy | ||
|
@@ -16,6 +16,7 @@ jobs: | |
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1). | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
@@ -33,7 +34,9 @@ jobs: | |
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
go-version: 1.17 # TODO(ldez) the binary compiled with go1.17 doesn't work on go1.18 | ||
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1). | ||
# go-version: ${{ env.GO_VERSION }} # TODO(ldez) the binary compiled with go1.17 doesn't work on go1.18 | ||
- name: lint | ||
uses: golangci/[email protected] | ||
with: | ||
|
@@ -50,6 +53,7 @@ jobs: | |
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1). | ||
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI | ||
- name: Run tests | ||
run: make.exe test | ||
|
@@ -63,6 +67,7 @@ jobs: | |
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1). | ||
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI | ||
- name: Run tests | ||
run: make test | ||
|
@@ -73,13 +78,14 @@ jobs: | |
strategy: | ||
matrix: | ||
golang: | ||
- 1.16 | ||
- 1.17 | ||
- 1.18 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1). | ||
go-version: ${{ matrix.golang }} | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -103,6 +109,7 @@ jobs: | |
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
# stable: 'false' # Keep this line to be able to use rc and beta version of Go (ex: 1.18.0-rc1). | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Check generated files are up to date | ||
run: make fast_check_generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.