This repository has been archived by the owner on May 9, 2024. It is now read-only.
Merge pull request #70 from LDMX-Software/68-meta-issue-for-several-t… #72
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
# Setup workflow to test if format matches that specified in the .clang-format file | |
name: clang-format | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the trunk branch | |
push: | |
branches: [ trunk ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- uses: DoozyX/[email protected] | |
with: | |
source: './include/Hcal ./include/Hcal/Event ./src/Hcal ./src/Hcal/Event' | |
exclude: '' | |
extensions: 'h,cpp' | |
clangFormatVersion: 12 | |
inplace: True | |
style: google | |
- uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: LDMX Bot | |
author_email: [email protected] | |
message: 'Committing clang-format changes' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |