Skip to content

Commit

Permalink
Update codechecker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
szymmirr authored Oct 9, 2023
1 parent cc48bfc commit ae22ad1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/codechecker.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
name: CodeChecker

on: [push, pull_request]
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.

# Upload the results to the CI
- uses: actions/upload-artifact@v2
with:
name: "CodeChecker Bug Reports"
Expand Down

0 comments on commit ae22ad1

Please sign in to comment.