mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-22 11:43:41 +08:00
CI: Only perform extensive checks on source file changes
This commit is contained in:
parent
be9aa2cd4d
commit
c6b02adc98
7
.github/workflows/status-check.yaml
vendored
7
.github/workflows/status-check.yaml
vendored
|
@ -14,7 +14,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v4
|
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
|
- name: validate coding style and functionality
|
||||||
|
if: ${{ steps.changed-files.outputs.any_changed == 'true' ||
|
||||||
|
github.event_name == 'workflow_dispatch' }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -q -y clang-format-12
|
sudo apt-get install -q -y clang-format-12
|
||||||
sudo apt-get install -q -y cppcheck
|
sudo apt-get install -q -y cppcheck
|
||||||
|
|
Loading…
Reference in New Issue
Block a user