Skip to content

Implement L2MC via ACL redirect. #924

Implement L2MC via ACL redirect.

Implement L2MC via ACL redirect. #924

Workflow file for this run

# Copyright 2023 Google LLC
#
# Licensed 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: Check Generate Code
on:
pull_request:
jobs:
gazelle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Bazel
uses: bazelbuild/setup-bazelisk@v2
- name: Run Gazelle
run: bazel run //:gazelle
- name: Check Diff
run: |
if test -n "$(git status --porcelain)"; then
git diff HEAD
exit 1
fi
protos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Bazel
uses: bazelbuild/setup-bazelisk@v2
- name: Cache Bazel
uses: actions/cache/restore@v3
with:
path: |
~/.cache/bazel
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'repositories.bzl') }}
restore-keys: |
${{ runner.os }}-bazel-
- name: Generate Protos
run: tools/genproto.sh
- name: Check Diff
run: |
if test -n "$(git status --porcelain)"; then
git diff HEAD
exit 1
fi