Skip to content

Commit

Permalink
ci: add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
gorazdko committed Mar 4, 2021
1 parent eceb05e commit c452703
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: brew install cppcheck
- run: git clone https://github.com/BlockchainCommons/bc-crypto-base.git && cd bc-crypto-base && ./configure && make && sudo make install
- run: git clone https://github.com/BlockchainCommons/bc-shamir.git && cd bc-shamir && ./configure && make && sudo make install
- run: ./configure
- run: make lint
- run: make check
- run: sudo make install
- run: make distcheck && make distclean
Expand All @@ -21,4 +23,3 @@ jobs:
- run: ./configure && make check
- run: sudo make install
- run: make distcheck && make distclean

2 changes: 1 addition & 1 deletion src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ distclean: clean

.PHONY: lint
lint:
cppcheck --enable=all --inline-suppr --suppress=unusedFunction --suppress=missingInclude .
cppcheck --enable=all --error-exitcode=1 --inline-suppr --suppress=unusedFunction --suppress=missingInclude .

0 comments on commit c452703

Please sign in to comment.