CI workflow: Build unit tests in debug mode (#1417)

* Run CI jobs on push events only when merged to develop or main

* Build unit tests with debug flags
This commit is contained in:
Daniel Markstedt 2024-01-18 13:38:55 +09:00 committed by GitHub
parent 7a986c84aa
commit 818addb0e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 3 deletions

View File

@ -7,16 +7,17 @@ on:
- 'cpp/**'
- '.github/workflows/build_code.yml'
- '.github/workflows/arm_cross_compile.yml'
branches:
- 'develop'
- 'main'
pull_request:
paths:
- 'cpp/**'
- '.github/workflows/build_code.yml'
- '.github/workflows/arm_cross_compile.yml'
types:
- assigned
- opened
- synchronize
- reopened
branches:
- 'develop'
- 'main'

View File

@ -7,11 +7,17 @@ on:
- 'cpp/**'
- 'python/**'
- '.github/workflows/cpp.yml'
branches:
- 'develop'
- 'main'
pull_request:
paths:
- 'cpp/**'
- 'python/**'
- '.github/workflows/cpp.yml'
types:
- opened
- synchronize
branches:
- 'develop'
- 'main'
@ -32,7 +38,7 @@ jobs:
run: sudo apt-get install ${{ env.APT_PACKAGES }}
- name: Build unit tests
run: make -j $(nproc) test
run: DEBUG=1 make -j $(nproc) test
- name: Run unit tests
run: (set -o pipefail && bin/piscsi_test | tee piscsi_test_log.txt)

View File

@ -14,6 +14,9 @@ on:
- 'python/common/**'
- '.github/workflows/web.yml'
- 'easyinstall.sh'
types:
- opened
- synchronize
branches:
- 'develop'
- 'main'