Skip to content

Commit c6b02ad

Browse files
committed
CI: Only perform extensive checks on source file changes
1 parent be9aa2c commit c6b02ad

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/status-check.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ jobs:
1414
steps:
1515
- name: checkout code
1616
uses: actions/checkout@v4
17+
- name: Test changed source files
18+
id: changed-files
19+
uses: tj-actions/changed-files@v39
20+
with:
21+
files: examples/**
1722
- name: validate coding style and functionality
23+
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
24+
github.event_name == 'workflow_dispatch' }}
1825
run: |
1926
sudo apt-get install -q -y clang-format-12
2027
sudo apt-get install -q -y cppcheck

0 commit comments

Comments
 (0)