This repository was archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): buf makefile dependency, update semgrep workflow (#1144)
- Loading branch information
1 parent
6cf2b9f
commit 8eb8e51
Showing
3 changed files
with
19 additions
and
27 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 |
---|---|---|
|
@@ -3,28 +3,26 @@ name: Protobuf | |
# This workflow is only run when a .proto file has been changed | ||
on: | ||
pull_request: | ||
paths: | ||
- "proto/**" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
- uses: bufbuild/[email protected] | ||
- uses: bufbuild/buf-lint-action@v1 | ||
with: | ||
PATTERNS: | | ||
**/**.proto | ||
- name: lint | ||
run: make proto-lint | ||
if: env.GIT_DIFF | ||
breakage: | ||
input: "proto" | ||
|
||
break-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
- uses: bufbuild/[email protected] | ||
- uses: bufbuild/buf-breaking-action@v1 | ||
with: | ||
PATTERNS: | | ||
**/**.proto | ||
- name: check-breakage | ||
run: make proto-check-breaking | ||
if: env.GIT_DIFF | ||
input: "proto" | ||
against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto" |
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
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 |
---|---|---|
|
@@ -237,14 +237,6 @@ else | |
@echo "protoc-gen-go already installed; skipping..." | ||
endif | ||
|
||
ifeq (, $(shell which protoc)) | ||
@echo "Please istalling protobuf according to your OS" | ||
@echo "macOS: brew install protobuf" | ||
@echo "linux: apt-get install -f -y protobuf-compiler" | ||
else | ||
@echo "protoc already installed; skipping..." | ||
endif | ||
|
||
ifeq (, $(shell which solcjs)) | ||
@echo "Installing solcjs..." | ||
@npm install -g [email protected] | ||
|