Skip to content

Commit b73092a

Browse files
authored
Merge pull request #47 from COS3711/main
Update test.yml
2 parents 7d9cee6 + 4c88b85 commit b73092a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/test.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,23 @@ jobs:
2020
sudo apt-get update
2121
sudo apt-get install -y libgl1-mesa-dev qt6-base-dev qt6-tools-dev qt6-tools-dev-tools cmake g++
2222
23-
- name: Build and run unit tests
23+
- name: Build project
2424
run: |
25+
mkdir -p build
2526
cd build
26-
ctest --output-on-failure
27+
cmake ../COS3711-03-01/
28+
make
2729
28-
- name: Build and run integration tests
30+
- name: Run unit tests
2931
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+
3338
- name: Upload test results
3439
uses: actions/upload-artifact@v3
3540
with:
3641
name: test-results
37-
path: build/tests/
42+
path: build/tests/

0 commit comments

Comments
 (0)