-
Notifications
You must be signed in to change notification settings - Fork 79
55 lines (43 loc) · 1.26 KB
/
build.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
53
54
55
name: Build and Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.23.0
- name: Set up protoc
run: |
wget https://github.com/protocolbuffers/protobuf/releases/download/v28.3/protoc-28.3-linux-x86_64.zip
unzip protoc-28.3-linux-x86_64.zip
sudo mv bin/protoc /usr/local/bin/protoc
sudo mv include/* /usr/local/include/
- name: Install protoc-gen-go
run: go install google.golang.org/protobuf/cmd/[email protected]
- name: Generated protofiles are up to date
run: |
make generate-protos
git diff --exit-code
- name: No formatting changes
run: |
make format
git diff --exit-code
- name: Install ZMQ
run: sudo apt update -y && sudo apt upgrade -y && sudo apt install libsodium-dev libzmq3-dev
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.61.0
- name: Linter passes
run: make linters
- name: Test
run: make test
- name: Integration Test
run: make integration