File tree 1 file changed +12
-7
lines changed
1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,23 @@ jobs:
20
20
sudo apt-get update
21
21
sudo apt-get install -y libgl1-mesa-dev qt6-base-dev qt6-tools-dev qt6-tools-dev-tools cmake g++
22
22
23
- - name : Build and run unit tests
23
+ - name : Build project
24
24
run : |
25
+ mkdir -p build
25
26
cd build
26
- ctest --output-on-failure
27
+ cmake ../COS3711-03-01/
28
+ make
27
29
28
- - name : Build and run integration tests
30
+ - name : Run unit tests
29
31
run : |
30
- cd build/tests/integration
31
- ctest --output-on-failure
32
-
32
+ cd build/tests # Adjust this path if your tests are in a different location
33
+ for test_executable in $(find . -type f -executable); do
34
+ echo "Running $test_executable"
35
+ $test_executable
36
+ done
37
+
33
38
- name : Upload test results
34
39
uses : actions/upload-artifact@v3
35
40
with :
36
41
name : test-results
37
- path : build/tests/
42
+ path : build/tests/
You can’t perform that action at this time.
0 commit comments