Skip to content

Commit 5391fd3

Browse files
committed
Run units tests on Ubuntu GHA
1 parent 3d09989 commit 5391fd3

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Run Tests
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'JuceLibraryCode/**'
7+
- 'Plugins/**'
8+
- 'Resources/**'
9+
- 'Source/**'
10+
- 'CMakeLists.txt'
11+
- 'HelperFunctions.cmake'
12+
branches:
13+
- 'tests'
14+
workflow_dispatch:
15+
16+
jobs:
17+
unit-tests:
18+
runs-on: ubuntu-22.04
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: build
23+
env:
24+
CC: gcc-10
25+
CXX: g++-10
26+
run: |
27+
sudo apt update
28+
cd Resources/Scripts
29+
sudo ./install_linux_dependencies.sh
30+
git apply gha_unit_tests.patch
31+
cd ../../Build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON ..
32+
make -j8
33+
- name: run tests
34+
run: |
35+
cd Resources/Scripts
36+
chmod +x run_unit_tests_linux.sh
37+
./run_unit_tests_linux.sh
38+
shell: bash
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/Tests/Processors/CMakeLists.txt b/Tests/Processors/CMakeLists.txt
2+
index a89fa4da4..ab53e8d89 100644
3+
--- a/Tests/Processors/CMakeLists.txt
4+
+++ b/Tests/Processors/CMakeLists.txt
5+
@@ -5,8 +5,8 @@ add_sources(${COMPONENT_NAME}_tests
6+
DataBufferTests.cpp
7+
PluginManagerTests.cpp
8+
SourceNodeTests.cpp
9+
- RecordNodeTests.cpp
10+
- ProcessorGraphTests.cpp
11+
+ #RecordNodeTests.cpp
12+
+ #ProcessorGraphTests.cpp
13+
EventTests.cpp
14+
DataThreadTests.cpp
15+
GenericProcessorTests.cpp

0 commit comments

Comments
 (0)