-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue-1541
- Loading branch information
Showing
28 changed files
with
351 additions
and
202 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,11 +29,11 @@ jobs: | |
name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
GOVER: 1.18 | ||
GOVER: "1.18" | ||
GOOS: ${{ matrix.target_os }} | ||
GOARCH: ${{ matrix.target_arch }} | ||
GOPROXY: https://proxy.golang.org | ||
GOLANGCI_LINT_VER: v1.45.2 | ||
GOLANGCI_LINT_VER: "v1.45.2" | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
|
@@ -51,12 +51,6 @@ jobs: | |
- os: macOS-latest | ||
target_arch: arm | ||
steps: | ||
- name: Check if need skip | ||
id: skip_check | ||
uses: fkirc/[email protected] | ||
with: | ||
cancel_others: 'true' | ||
paths_ignore: '["**.md", ".codecov.yaml", ".github/workflows/dapr-automerge.yml"]' | ||
- name: Set up Go ${{ env.GOVER }} | ||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }} | ||
uses: actions/setup-go@v2 | ||
|
@@ -65,11 +59,43 @@ jobs: | |
- name: Check out code into the Go module directory | ||
if: ${{ steps.skip_check.outputs.should_skip != 'true' }} | ||
uses: actions/checkout@v2 | ||
- name: Cache Go modules (Linux) | ||
if: matrix.target_os == 'linux' | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}- | ||
- name: Cache Go modules (Windows) | ||
if: matrix.target_os == 'windows' | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~\AppData\Local\go-build | ||
~\go\pkg\mod | ||
key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}- | ||
- name: Cache Go modules (macOS) | ||
if: matrix.target_os == 'darwin' | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/Library/Caches/go-build | ||
~/go/pkg/mod | ||
key: ${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ matrix.target_os }}-${{ matrix.target_arch }}-go-${{ env.GOVER }}- | ||
- name: Run golangci-lint | ||
if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' && steps.skip_check.outputs.should_skip != 'true' | ||
uses: golangci/golangci-lint-action@v3.1.0 | ||
uses: golangci/golangci-lint-action@v3.2.0 | ||
with: | ||
version: ${{ env.GOLANGCI_LINT_VER }} | ||
skip-cache: true | ||
args: --timeout 15m | ||
- name: Run go mod tidy check diff | ||
if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' && steps.skip_check.outputs.should_skip != 'true' | ||
run: make modtidy-all check-diff | ||
|
@@ -80,4 +106,4 @@ jobs: | |
run: make test | ||
- name: Codecov | ||
if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux' | ||
uses: codecov/codecov-action@v1 | ||
uses: codecov/codecov-action@v3 |
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
Oops, something went wrong.