Skip to content

Commit

Permalink
re-compile .proto files in the CI
Browse files Browse the repository at this point in the history
fail test if re-compilation changes something
  • Loading branch information
darkdarkdragon committed Feb 18, 2022
1 parent dbb95ce commit 778ac23
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: '1.17.6'
- name: Install protobuf
run: |
go install github.com/golang/protobuf/[email protected]
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Cache go modules
id: cache-go-mod
uses: actions/[email protected]
Expand All @@ -96,6 +103,12 @@ jobs:
run: |
go fmt ./...
git diff --exit-code
- name: Compile proto files
run: |
protoc --version
touch net/lp_rpc.proto net/redeemer.proto
make net/lp_rpc.pb.go net/redeemer.pb.go
git diff --exit-code
- name: Lint
run: |
export PKG_CONFIG_PATH=~/compiled/lib/pkgconfig
Expand Down

0 comments on commit 778ac23

Please sign in to comment.