forked from dapr/go-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduces go1.22 to tests (and misc cleanup) (dapr#504)
* introduces go1.22 - dapr-bot updated to use go1.22 - adds go1.22 to the test jobs - adds go1.22 to tooling tests Signed-off-by: mikeee <[email protected]> * remove 1.20 tests Signed-off-by: mikeee <[email protected]> * dapr-bot workflow changes - retrieve go version from go.mod - run go mod tidy rather than go get Signed-off-by: mikeee <[email protected]> * bump action versions and release go version is now from go.mod Signed-off-by: mikeee <[email protected]> * bump main and tool mod files to 1.21 Signed-off-by: mikeee <[email protected]> * fix dapr-bot test Signed-off-by: mikeee <[email protected]> * test dapr-bot using go version from go.mod Signed-off-by: mikeee <[email protected]> * bump action versions and remove explicit caching Signed-off-by: mikeee <[email protected]> * bump examples to go1.21 and bump deps Signed-off-by: mikeee <[email protected]> * bump compatibility check to 1.21 in the make flow Signed-off-by: mikeee <[email protected]> * bump to dapr1.13rc2 Signed-off-by: mikeee <[email protected]> * tidy sums Signed-off-by: mikeee <[email protected]> * empty commit to trigger tests (flaky example service validation) Signed-off-by: mikeee <[email protected]> * remove conditionals for modtidy/checkdiff runs Signed-off-by: mikeee <[email protected]> --------- Signed-off-by: mikeee <[email protected]>
- Loading branch information
Showing
27 changed files
with
453 additions
and
215 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
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 |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
FOSSA_API_KEY: b88e1f4287c3108c8751bf106fb46db6 # This is a push-only token that is safe to be exposed. | ||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Run FOSSA Scan" | ||
uses: fossas/[email protected] # Use a specific version if locking is preferred | ||
|
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 |
---|---|---|
|
@@ -15,27 +15,19 @@ jobs: | |
matrix: | ||
gover: | ||
- "1.21" | ||
- "1.20" | ||
- "1.22" | ||
env: | ||
GOVER: ${{ matrix.gover }} | ||
GOLANGCILINT_VER: v1.55.2 | ||
|
||
steps: | ||
- name: Setup | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GOVER }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache | ||
uses: actions/cache@v3 | ||
- name: Setup | ||
uses: actions/setup-go@v5 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
go-version: ${{ env.GOVER }} | ||
|
||
- name: Tidy | ||
run: make tidy | ||
|
@@ -44,7 +36,7 @@ jobs: | |
run: make test | ||
|
||
- name: Cover | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v4 | ||
|
||
- name: Lint | ||
uses: golangci/[email protected] | ||
|
@@ -54,8 +46,6 @@ jobs: | |
args: --timeout=10m0s | ||
|
||
- name: Run go mod tidy check diff | ||
if: strategy.job-index == 0 | ||
run: make modtidy check-diff | ||
- name: Run go mod tidy | ||
if: strategy.job-index != 0 | ||
run: make modtidy |
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.