Skip to content

Commit 2bb38e0

Browse files
committed
ci: check proto format
This patch enables CI for proto files.
1 parent 9178a3f commit 2bb38e0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: lint
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- '**'
9+
pull_request:
10+
workflow_dispatch:
11+
12+
jobs:
13+
protobuf:
14+
runs-on: ubuntu-20.04-self-hosted
15+
container:
16+
image: docker.io/tarantool/testing:ubuntu-focal
17+
18+
steps:
19+
- name: Prepare checkout
20+
uses: tarantool/actions/prepare-checkout@master
21+
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
submodules: recursive
26+
27+
- name: Install clang-format
28+
run: |
29+
apt-get update
30+
apt-get -y install clang-format
31+
32+
- name: Generate make files
33+
run: cmake .
34+
35+
- name: Checking protobuf syntax
36+
run: clang-format --dry-run --verbose -Werror *.proto

0 commit comments

Comments
 (0)