From bfaf176670392b57a03759527e8f63d42556fbe0 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sun, 30 Jan 2022 08:20:14 +0500 Subject: [PATCH] Move cppcheck of packages to package jobs --- .github/workflows/test.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e0cb7c9..262a21d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,10 +50,16 @@ jobs: run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability --suppress=duplicateExpression --suppress=staticStringCompare examples/ - name: cppcheck tests run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability --suppress=unusedStructMember tests/ - - name: cppcheck mruby - run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability pkgs/mruby/ - - name: cppcheck ruby - run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability pkgs/ruby/ + + mruby: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: dependencies + run: sudo apt-get -y install cppcheck + - working-directory: pkgs/mruby + name: cppcheck + run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability . ruby: runs-on: ubuntu-latest @@ -62,6 +68,8 @@ jobs: - uses: ruby/setup-ruby@v1 with: ruby-version: 3.0 + - name: dependencies + run: sudo apt-get -y install cppcheck - name: autogen run: ./autogen.sh - name: configure @@ -79,6 +87,9 @@ jobs: - working-directory: pkgs/ruby name: test & lint run: rake + - working-directory: pkgs/ruby + name: cppcheck + run: cppcheck --quiet --error-exitcode=1 --std=c99 --enable=warning,style,performance,portability . rust: runs-on: ubuntu-latest