pre-commit.yaml 551 B

12345678910111213141516171819202122
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. name: pre-commit
  5. on:
  6. pull_request:
  7. push:
  8. branches: [trunk]
  9. jobs:
  10. pre-commit:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. with:
  15. submodules: true
  16. - uses: actions/setup-python@v2
  17. - uses: pre-commit/action@v2.0.2
  18. env:
  19. SKIP: bazel-buildifier,clang-format-whole-file,fix-cc-deps