Files
carbon-lang/.github/workflows/pre-commit.yaml
T

23 lines
628 B
YAML

# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: pre-commit
on:
pull_request:
push:
branches: [trunk]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.2
env:
# bazel-buildifier relies on a locally installed copy.
# clang-format-whole-file has races in cache creation.
SKIP: bazel-buildifier,clang-format-whole-file