Skip to content

Only run the C++ unittests once #1970

Only run the C++ unittests once

Only run the C++ unittests once #1970

name: clang-format-check
on: [pull_request, push]
jobs:
build:
name: clang-format-check
runs-on: ubuntu-20.04
# Run on external PRs, but not internal PRs as they'll be run by the push
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Fetch repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install packages
run: sudo apt-get update && sudo apt-get install python3-venv
- name: check_clang_format
run: ci/check_clang_format.sh