Skip to content

Merge pull request #1 from szymmirr/dependabot/github_actions/actions… #8

Merge pull request #1 from szymmirr/dependabot/github_actions/actions…

Merge pull request #1 from szymmirr/dependabot/github_actions/actions… #8

Workflow file for this run

name: CodeChecker
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
codechecker:
runs-on: ubuntu-latest
steps:
- name: "Check out repository"
uses: actions/checkout@v4
# Prepare a build
- name: "Prepare build"
run: |
mkdir -pv Build
cd Build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
# Run the analysis
- uses: whisperity/codechecker-analysis-action@v1
id: codechecker
with:
logfile: ${{ github.workspace }}/Build/compile_commands.json
# Upload the results to the CI
- uses: actions/upload-artifact@v3
with:
name: "CodeChecker Bug Reports"
path: ${{ steps.codechecker.outputs.result-html-dir }}