feat: [controller & cli] support cancel agent upgrade #1643
Workflow file for this run
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
name: verify cli | |
on: | |
pull_request: | |
paths: | |
- 'cli/**' | |
jobs: | |
verify_cli: | |
name: verify cli | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@master | |
with: | |
go-version: 1.21.x | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.6.1' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: verify cli | |
run: | | |
sudo apt-get install tmpl | |
pip install ujson | |
GO111MODULE="off" go get github.com/gogo/protobuf/protoc-gen-gofast | |
GO111MODULE="off" go get github.com/gogo/protobuf/proto | |
GO111MODULE="off" go get github.com/gogo/protobuf/jsonpb | |
GO111MODULE="off" go get github.com/gogo/protobuf/protoc-gen-gogo | |
GO111MODULE="off" go get github.com/gogo/protobuf/gogoproto | |
GO111MODULE="off" go get github.com/golang/protobuf/protoc-gen-go | |
go install golang.org/x/tools/cmd/stringer@v0.24.0 | |
cd cli | |
go mod tidy | |
go fmt ./... | |
git diff | |
go fmt ./...; [[ -z $(git status -s --ignore-submodule) ]] || exit -1 | |
make |