Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.14.6 gh actions cppcheck #7

Open
wants to merge 8 commits into
base: 1.14.5-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: cppcheck-action
on:
push:
branches:
- '*-dev'
pull_request:
branches:
- '*-dev'
paths:
- 'src/**.cpp'
- 'src/**.h'

jobs:
analyse:
name: cppcheck
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

- name: Install deps
run: |
sudo apt update -y
sudo apt install -y build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt install -y libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo apt install -y libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev
sudo apt install -y libdb5.3++-dev libdb5.3++ libdb5.3-dev
sudo apt install -y libzmq3-dev libminiupnpc-dev

- name: Configure
run: ./autogen.sh && ./configure --enable-reduce-exports --enable-glibc-back-compat

- name: Run Cppcheck
uses: Bedzior/run-cppcheck@v1.0.0
with:
enabled checks: unusedFunction,warning,missingInclude
generate report: true
path: ./src

- name: Upload report
uses: actions/upload-artifact@v1
with:
name: report
path: output
2 changes: 1 addition & 1 deletion src/wallet/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <boost/filesystem/path.hpp>

#include <db_cxx.h>
#include <db_cxx.h>

static const unsigned int DEFAULT_WALLET_DBLOGSIZE = 100;
static const bool DEFAULT_WALLET_PRIVDB = true;
Expand Down