blob: e07c1076ce8237100ea64f2d6607594e291f3e1e [file] [log] [blame]
# 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.
name: CI
on:
push:
branches: [ main ]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: korandoru/hawkeye@v4
- name: Check proto files
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '13'
check-path: 'protos'
fallback-style: 'google'
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
version: "25.1"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
cache: maven
- name: Check Golang package
run: |
# Check generated files identical
make go && git diff --exit-code
# Check Golang package compile
pushd golang && go build ./... && popd
- name: Check Rust crate
run: make rust
- name: Check Java library
run: make java