-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jin Dong <[email protected]>
- Loading branch information
Showing
7 changed files
with
46 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
branches: [ main ] | ||
|
||
env: | ||
GO_VERSION: 1.20.x | ||
GO_VERSION: 1.23.x | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -27,27 +27,21 @@ jobs: | |
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
path: src/github.com/containerd/ttrpc | ||
|
||
- uses: actions/setup-go@v5 | ||
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 | ||
with: | ||
version: v1.51.2 | ||
version: v1.60.3 | ||
args: --timeout=5m | ||
skip-cache: true | ||
working-directory: src/github.com/containerd/ttrpc | ||
|
||
- name: golangci-lint errors | ||
run: golangci-lint run | ||
working-directory: src/github.com/containerd/ttrpc | ||
if: ${{ failure() }} | ||
|
||
# | ||
# Project checks | ||
# | ||
|
@@ -57,16 +51,15 @@ jobs: | |
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
path: src/github.com/containerd/ttrpc | ||
fetch-depth: 25 | ||
|
||
- uses: actions/setup-go@v5 | ||
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- uses: containerd/[email protected] | ||
- uses: containerd/project-checks@434a07157608eeaa1d5c8d4dd506154204cd9401 # v1.1.0 | ||
with: | ||
working-directory: src/github.com/containerd/ttrpc | ||
|
||
|
@@ -78,20 +71,18 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
go: [1.19.x, 1.20.x] | ||
go: [1.22.x, 1.23.x] | ||
|
||
name: ${{ matrix.os }} / ${{ matrix.go }} | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
path: src/github.com/containerd/ttrpc | ||
fetch-depth: 25 | ||
|
||
- uses: actions/setup-go@v5 | ||
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
|
@@ -119,13 +110,11 @@ jobs: | |
timeout-minutes: 5 | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
path: src/github.com/containerd/ttrpc | ||
fetch-depth: 25 | ||
|
||
- uses: actions/setup-go@v5 | ||
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
id: go | ||
|
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 |
---|---|---|
@@ -1,19 +1,16 @@ | ||
module github.com/containerd/ttrpc | ||
|
||
go 1.19 | ||
go 1.22 | ||
|
||
require ( | ||
github.com/containerd/log v0.1.0 | ||
github.com/gogo/protobuf v1.3.2 | ||
github.com/golang/protobuf v1.5.3 | ||
github.com/golang/protobuf v1.5.4 | ||
github.com/prometheus/procfs v0.6.0 | ||
golang.org/x/sys v0.18.0 | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20230731190214-cbb8c96f2d6d | ||
google.golang.org/grpc v1.57.1 | ||
google.golang.org/protobuf v1.33.0 | ||
golang.org/x/sys v0.26.0 | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 | ||
google.golang.org/grpc v1.69.2 | ||
google.golang.org/protobuf v1.36.0 | ||
) | ||
|
||
require ( | ||
github.com/sirupsen/logrus v1.9.3 // indirect | ||
golang.org/x/net v0.23.0 // indirect | ||
) | ||
require github.com/sirupsen/logrus v1.9.3 // indirect |
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