mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 08:29:59 +00:00
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:
parent
7a986c84aa
commit
818addb0e0
5
.github/workflows/build_code.yml
vendored
5
.github/workflows/build_code.yml
vendored
@ -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'
|
||||
|
8
.github/workflows/cpp.yml
vendored
8
.github/workflows/cpp.yml
vendored
@ -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)
|
||||
|
3
.github/workflows/web.yml
vendored
3
.github/workflows/web.yml
vendored
@ -14,6 +14,9 @@ on:
|
||||
- 'python/common/**'
|
||||
- '.github/workflows/web.yml'
|
||||
- 'easyinstall.sh'
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
branches:
|
||||
- 'develop'
|
||||
- 'main'
|
||||
|
Loading…
Reference in New Issue
Block a user