Split check workflow in two jobs

pull/458/head
Artem Gavrilov 2024-04-25 17:37:05 +02:00
parent 025cf6a36d
commit 7e325ffc61
1 changed files with 25 additions and 29 deletions

View File

@ -3,16 +3,11 @@ on:
pull_request: pull_request:
jobs: jobs:
run: cppcheck:
name: Run name: Cppcheck
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
defaults:
run:
working-directory: src/pg_stat_monitor
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
@ -21,31 +16,32 @@ jobs:
- name: Checkout cppcheck sources - name: Checkout cppcheck sources
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
repository: 'danmar/cppcheck' repository: "danmar/cppcheck"
ref: '2.13.4' ref: "2.13.4"
path: src/cppcheck path: src/cppcheck
# - name: Build and install cppcheck - name: Build and install cppcheck
# working-directory: src/cppcheck working-directory: src/cppcheck
# run: | run: |
# mkdir build mkdir build
# cd build cd build
# cmake .. cmake ..
# cmake --build . cmake --build .
# sudo cmake --install . sudo cmake --install .
# - name: Execute linter check with cppcheck - name: Execute linter check with cppcheck
# run: | working-directory: src/pg_stat_monitor
# set -x run: |
# cppcheck --enable=all --inline-suppr --template='{file}:{line},{severity},{id},{message}' --error-exitcode=1 --suppress=missingIncludeSystem --suppress=missingInclude --suppress=unmatchedSuppression:pg_stat_monitor.c --check-config . set -x
cppcheck --enable=all --inline-suppr --template='{file}:{line},{severity},{id},{message}' --error-exitcode=1 --suppress=missingIncludeSystem --suppress=missingInclude --suppress=unmatchedSuppression:pg_stat_monitor.c --check-config .
licens:
name: License
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Check license headers - name: Check license headers
uses: apache/skywalking-eyes/header@v0.6.0 uses: apache/skywalking-eyes/header@v0.6.0
working-directory: src/pg_stat_monitor
- name: Run debug commands on failure
if: ${{ failure() }}
run: |
env
pwd
git status