forked from livepeer/go-livepeer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fail test if re-compilation changes something
- Loading branch information
1 parent
dbb95ce
commit 778ac23
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 | ||
|