You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by la...@apache.org on 2022/12/13 02:00:09 UTC
[incubator-pegasus] 03/03: build then lint
This is an automated email from the ASF dual-hosted git repository.
laiyingchun pushed a commit to branch fix_build_golang_regular
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git
commit d5586afeabf7a2d0f14c5ad92b7399f7233f4914
Author: Yingchun Lai <la...@apache.org>
AuthorDate: Tue Dec 13 09:49:47 2022 +0800
build then lint
---
.github/workflows/regular-build.yml | 46 ++++++++++++++-----------------------
1 file changed, 17 insertions(+), 29 deletions(-)
diff --git a/.github/workflows/regular-build.yml b/.github/workflows/regular-build.yml
index d240fe35a..f46e46af7 100644
--- a/.github/workflows/regular-build.yml
+++ b/.github/workflows/regular-build.yml
@@ -92,35 +92,8 @@ jobs:
- name: Packaging Server
run: ./run.sh pack_server
- lint_go:
- name: Lint Golang
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- with:
- fetch-depth: 1
- - name: Set up Go
- uses: actions/setup-go@v2
- with:
- go-version: 1.14
- - name: go-client
- uses: golangci/golangci-lint-action@v3
- with:
- version: v1.29
- working-directory: ./go-client
- - name: admin-cli
- uses: golangci/golangci-lint-action@v3
- with:
- version: v1.29
- working-directory: ./admin-cli
- - name: pegic
- uses: golangci/golangci-lint-action@v3
- with:
- version: v1.29
- working-directory: ./pegic
-
- build_go:
- name: Build Golang
+ build_and_lint_go:
+ name: Build and Lint Golang
runs-on: ubuntu-20.04
steps:
- name: Install thrift
@@ -138,12 +111,27 @@ jobs:
- name: Build go-client
run: make
working-directory: ./go-client
+ - name: Lint go-client
+ uses: golangci/golangci-lint-action@v3
+ with:
+ version: v1.29
+ working-directory: ./go-client
- name: Build admin-cli
run: make
working-directory: ./admin-cli
+ - name: Lint admin-cli
+ uses: golangci/golangci-lint-action@v3
+ with:
+ version: v1.29
+ working-directory: ./admin-cli
- name: Build pegic
run: make
working-directory: ./pegic
+ - name: Lint pegic
+ uses: golangci/golangci-lint-action@v3
+ with:
+ version: v1.29
+ working-directory: ./pegic
build_java:
name: Build Java
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org