-
Notifications
You must be signed in to change notification settings - Fork 337
52 lines (46 loc) · 1.42 KB
/
server-verify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: verify server
on:
pull_request:
paths:
- 'server/**'
- 'message/**'
jobs:
verify_server:
name: verify server
runs-on: "cirun-aws-amd64-32c--${{ github.run_id }}"
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: Install dependencies
run: |
pip3 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
- name: verify server
run: |
cd server
touch vendor
make clean
go mod tidy
go fmt ./...
git diff
go fmt ./...; [[ -z $(git status -s --ignore-submodule) ]] || exit -1
make
cd querier/engine/clickhouse
go test