forked from PandoraPFA/LArContent
-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (34 loc) · 1.01 KB
/
formatting.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: clang-format
# Controls when the workflow will run
on:
# Trigger the workflow on push to master, or any pull request.
# workflow_dispatch allows manual running through the GitHub UI.
# push:
# branches:
# - master
# pull_request:
# branches:
# - '*'
workflow_dispatch:
# Workflow with 1 stage: Build.
# Each of the sub-stages in the build job run in parallel.
jobs:
formatting-check:
# Use the latest ubuntu image: https://github.com/actions/runner-images
name: LArContent - clang-format
runs-on: ubuntu-latest
# Only run in the PandoraPFA repos.
if: github.repository_owner == 'PandoraPFA'
# Build matrix, test both content and DL content.
strategy:
matrix:
path:
- 'larpandoracontent'
- 'larpandoradlcontent'
steps:
- uses: actions/checkout@v4
- name: Check clang-format
uses: jidicula/[email protected]
with:
clang-format-version: '18'
check-path: ${{ matrix.path }}