Skip to content

Commit

Permalink
CI: Only perform extensive checks on source file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Sep 18, 2023
1 parent be9aa2c commit c6b02ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/status-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ jobs:
steps:
- name: checkout code
uses: actions/checkout@v4
- name: Test changed source files
id: changed-files
uses: tj-actions/changed-files@v39
with:
files: examples/**
- name: validate coding style and functionality
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
github.event_name == 'workflow_dispatch' }}
run: |
sudo apt-get install -q -y clang-format-12
sudo apt-get install -q -y cppcheck
Expand Down

0 comments on commit c6b02ad

Please sign in to comment.