Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

add more tests to show pass/fail #1897

add more tests to show pass/fail

add more tests to show pass/fail #1897

name: clang-format-check
on: [pull_request, push]
env:
apt_options: -o Acquire::Retries=3
jobs:
build:
name: clang-format-check
runs-on: ubuntu-22.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@v3
with:
fetch-depth: 2
- name: Install packages
run: |
sudo apt-get ${{env.apt_options}} update -y
sudo apt-get ${{env.apt_options}} install -y python3-venv
- name: check_clang_format
run: ci/check_clang_format.sh