Skip to content

Commit ab31c21

Browse files
authored
[skip changelog] Add formatting check to "Check Protocol Buffers" workflow (#1391)
On every push and pull request that affects relevant files, check the protocol buffer files for code formatting inconsistency.
1 parent 3f2e910 commit ab31c21

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/check-protobuf-task.yml

+19
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,22 @@ jobs:
7979

8080
- name: Lint protocol buffers
8181
run: task protoc:check
82+
83+
check-formatting:
84+
runs-on: ubuntu-latest
85+
86+
steps:
87+
- name: Checkout repository
88+
uses: actions/checkout@v2
89+
90+
- name: Install Task
91+
uses: arduino/setup-task@v1
92+
with:
93+
repo-token: ${{ secrets.GITHUB_TOKEN }}
94+
version: 3.x
95+
96+
- name: Format protocol buffers
97+
run: task protoc:format
98+
99+
- name: Check formatting
100+
run: git diff --color --exit-code

0 commit comments

Comments
 (0)