Skip to content

podio::DataSource

podio::DataSource #223

Workflow file for this run

name: clang-format
on: [push, pull_request]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: cvmfs-contrib/github-action-cvmfs@v3
- name: Start container
run: |
docker run -it --name CI_container -v ${GITHUB_WORKSPACE}:/Package -v /cvmfs:/cvmfs:shared -d ghcr.io/aidasoft/centos7:latest /bin/bash
- name: Add upstream
run: |
docker exec CI_container /bin/bash -c 'cd ./Package
git remote add upstream https://github.com/HEP-FCC/FCCAnalyses.git
git fetch upstream'
- name: Run formatter
run: |
docker exec CI_container /bin/bash -c 'cd ./Package
source /cvmfs/sft.cern.ch/lcg/contrib/clang/14.0.6/x86_64-centos7/setup.sh
git clang-format --style=file $(git merge-base upstream/master HEAD)'
- name: Check cleanliness
run: |
docker exec CI_container /bin/bash -c 'cd ./Package
git diff'