Merge branch 'merge_conflicts' into 'master' #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run static code analysis | |
on: | |
push: | |
branches: | |
- 'develop' | |
- 'master' | |
pull_request: | |
branches: | |
- 'master' | |
jobs: | |
static_analysis: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Setup cmake | |
uses: jwlawson/actions-setup-cmake@v2 | |
- name: Set up GCC | |
uses: egor-tensin/setup-gcc@v1 | |
with: | |
version: 13 | |
- name: Install dependencies | |
run: | | |
sudo apt-get install cppcheck | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
- name: Run CodeChecker analysis | |
uses: whisperity/codechecker-analysis-action@v1 | |
id: codechecker | |
with: | |
config: ./codechecker_config.json | |
build-command: ./codechecker_build.sh | |
- name: Upload results artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "CodeChecker Bug Reports" | |
path: ${{ steps.codechecker.outputs.result-html-dir }} | |
# For now let's keep this disabled. | |
# - name: "Break build if CodeChecker reported any findings" | |
# if: ${{ steps.codechecker.outputs.warnings == 'true' }} | |
# run: exit 1 |