forked from planetscale/vtprotobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 839 Bytes
/
ci.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
name: CI
on:
push:
pull_request:
jobs:
ci:
name: Build and test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: '>=1.23.0'
- uses: actions/checkout@v2
- name: Cache protobuf build
id: protocache
uses: actions/cache@v3
with:
path: _vendor/protobuf-21.12
key: protobuf-21.12
- name: Compile protobuf
if: steps.protocache.outputs.cache-hit != 'true'
run: |
sudo apt-get install -y autoconf automake libtool curl make g++ unzip
./protobuf.sh
- run: make install && go mod tidy && go mod verify
- run: git --no-pager diff --exit-code
- run: go vet ./...
- run: make genall
- run: git --no-pager diff --exit-code
- run: make test
- run: git --no-pager diff --exit-code