This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc-format.git


The following commit(s) were added to refs/heads/main by this push:
     new 49daab0  ORC-FORMAT-3: Enable `Protocol Buffers` Linter (#4)
49daab0 is described below

commit 49daab03f1374ff8ea1df97db608b9711d0e6448
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Thu Dec 7 21:47:53 2023 -0800

    ORC-FORMAT-3: Enable `Protocol Buffers` Linter (#4)
    
    ### What changes were proposed in this pull request?
    
    This close #3 .
    
    Note that [INFRA-25254](https://issues.apache.org/jira/browse/INFRA-25254) 
is required to allow `bufbuild` GitHub Action.
    
    ### Why are the changes needed?
    
    To normalize ORC Format ProtocolBuffers file easily.
    
    ### How was this patch tested?
    
    Manual review.
---
 .github/workflows/build_and_test.yml           |  8 ++++++++
 src/main/proto/buf.yaml                        | 23 +++++++++++++++++++++++
 src/main/proto/{ => orc/proto}/orc_proto.proto |  0
 3 files changed, 31 insertions(+)

diff --git a/.github/workflows/build_and_test.yml 
b/.github/workflows/build_and_test.yml
index a6c5f46..3c8d7b2 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -20,6 +20,14 @@ jobs:
         distribution: zulu
         java-version: 17
 
+    - uses: bufbuild/buf-setup-action@v1
+      with:
+        github_token: ${{ secrets.GITHUB_TOKEN }}
+
+    - uses: bufbuild/buf-lint-action@v1
+      with:
+        input: "src/main/proto"
+
     - name: Install
       run: |
         ./mvnw install
diff --git a/src/main/proto/buf.yaml b/src/main/proto/buf.yaml
new file mode 100644
index 0000000..31b7729
--- /dev/null
+++ b/src/main/proto/buf.yaml
@@ -0,0 +1,23 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+version: v1
+breaking:
+  use:
+    - FILE
+lint:
+  use:
+    - MINIMAL
diff --git a/src/main/proto/orc_proto.proto 
b/src/main/proto/orc/proto/orc_proto.proto
similarity index 100%
rename from src/main/proto/orc_proto.proto
rename to src/main/proto/orc/proto/orc_proto.proto

Reply via email to