Skip to content

Add Github Actions for Format + Testing #14

Add Github Actions for Format + Testing

Add Github Actions for Format + Testing #14

Workflow file for this run

name: Clang Format
on:
push:
branches: [ main ]
pull_request:
jobs:
clang-format:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
timeout-minutes: 1
steps:
- name: Checking out repository
uses: actions/checkout@v4
- name: Install dependencies
run : |
sudo apt-get update && sudo apt-get install -yq clang clang-format
- name: Run clang-format
run: cd cxx && clang-format --version && clang-format --dry-run -Werror --verbose *.cc *.hh \
*.hpp distributions/*.cc distributions/*.hh tests/*.cc