This commit is contained in:
Kreyren 2020-02-11 19:10:22 +00:00
parent 81f84ee16c
commit 5a48425858
5 changed files with 4 additions and 4 deletions

@ -17,7 +17,7 @@ jobs:
- name: Installing dependencies..
run: if ! apt list --installed | grep -qP ".*cppcheck.*"; then apt install -y cppcheck; fi
- name: Linting..
run: for file in $(git --no-pager diff --name-only origin/master | grep -o ".*\.cpp") ;do cppcheck "$file";done
run: cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '.*\.cpp'); do cppcheck "$file"; done
# Kernel specific builds
build-gcc-cpp:
runs-on: ${{ matrix.os }}

@ -17,7 +17,7 @@ jobs:
- name: Installing dependencies..
run: if ! apt-list --installed cppcheck | grep -q ".*cppcheck.*"; then sudo apt install -y cppcheck; fi
- name: Linting..
run: for file in $(git --no-pager diff --name-only origin/master | grep -o ".*\.c"); do cppcheck "$file";done
run: cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '.*\.c'); do cppcheck "$file"; done
## Valgrind test on gcc
valgrind-gcc:
runs-on: ubuntu-latest

@ -36,4 +36,4 @@ jobs:
- name: Test with pytest
run: |
pip install pytest
for file in $(git --no-pager diff --name-only origin/master | grep -o ".*\.py") ;do pytest "$file";done
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '.*\.py'); do pytest "$file"; done

@ -16,4 +16,4 @@ jobs:
- name: Installing dependencies..
run: if ! apt list --installed | grep -qP ".*shellcheck.*"; then apt install -y shellcheck; fi
- name: Linting..
run: for file in $(git --no-pager diff --name-only origin/master | grep -o ".*\.sh") ;do shellcheck --external-sources --shell=sh "$file";done
run: cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '.*\.sh'); do shellcheck --external-sources --shell=sh "$file";done