Add a file writer base class & start setting up an implementation to … #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run clang-format Linter | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
container: ghcr.io/hyperk/clang_format:latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: make_safe | |
run: git config --global --add safe.directory '*' | |
- name: format | |
run: git clone https://github.com/hyperk/hk-ClangFormat.git && cd hk-ClangFormat && ./run.sh && cd .. && rm -rf hk-ClangFormat && git restore OriginalWCSim/cmake/ OriginalWCSim/include/WCSimDetectorConstruction.hh OriginalWCSim/include/WCSimPMTObject.hh OriginalWCSim/src/WCSimPMTObject.cc OriginalWCSim/src/TJNuBeamFlux.cc OriginalWCSim/src/WCSimRootEvent.cc OriginalWCSim/src/WCSimRootGeom.cc | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Clang Robot | |
author_email: [email protected] | |
message: 'Committing clang-format changes' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |