@@ -16,29 +16,24 @@ jobs:
1616 steps :
1717 - uses : actions/checkout@v4
1818
19- - name : Create static_analysis directory
20- run : mkdir -p static_analysis
21-
2219 - name : Run Cppcheck
2320 run : |
2421 sudo apt-get install -y cppcheck
25- cppcheck --enable=all --inconclusive --force --language=c++ --file-list=<(find lwlog/src/ -name "*.cpp" -o -name "*.h") &> static_analysis/cppcheck.txt
22+ cppcheck --enable=all --inconclusive --force --language=c++ --file-list=<(find lwlog/src/ -name "*.cpp" -o -name "*.h") &> \
23+ "${{ runner.workspace }}/cppcheck.txt"
2624 continue-on-error : true
2725
2826 - name : Upload Cppcheck Results
2927 uses : actions/upload-artifact@v4
3028 with :
3129 name : cppcheck_results
32- path : static_analysis /cppcheck.txt
30+ path : " ${{ runner.workspace }} /cppcheck.txt"
3331
3432 clang-tidy :
3533 runs-on : ubuntu-latest
3634 steps :
3735 - uses : actions/checkout@v4
3836
39- - name : Create static_analysis directory
40- run : mkdir -p static_analysis
41-
4237 - name : Install Dependencies
4338 run : sudo apt-get install -y build-essential cmake
4439
@@ -54,14 +49,15 @@ jobs:
5449 - name : Run Clang-Tidy
5550 run : |
5651 sudo apt-get install -y clang-tidy
57- find lwlog/src/ -name "*.cpp" -o -name "*.h" | xargs clang-tidy -p=build/compile_commands.json &> static_analysis/clang-tidy.txt
52+ find lwlog/src/ -name "*.cpp" -o -name "*.h" | xargs clang-tidy -p=build/compile_commands.json &> \
53+ "${{ runner.workspace }}/clang-tidy.txt"
5854 continue-on-error : true
5955
6056 - name : Upload Clang-Tidy Results
6157 uses : actions/upload-artifact@v4
6258 with :
6359 name : clangtidy_results
64- path : static_analysis /clang-tidy.txt
60+ path : " ${{ runner.workspace }} /clang-tidy.txt"
6561
6662 sonar-scanner :
6763 runs-on : ubuntu-latest
0 commit comments