Skip to content

Commit fbad426

Browse files
committed
fix: Fixed CI
Signed-off-by: Yash Pandey (YP) <[email protected]>
1 parent 5f73b84 commit fbad426

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ jobs:
3232
- name: Building library
3333
id: building-lib
3434
run: |
35-
cd build && cmake --build . --config Debug --target all -j 10 --
35+
cd build && cmake --build . --config Debug --target all install -j 10 --
36+
- name: Tests
37+
id: test-lib
38+
run: |
39+
cd build
40+
ctest -j10 -C Debug -T test --output-on-failure -T test --output-on-failure
3641
- name: Cleanup
3742
id: clean-up
3843
run: |
@@ -55,12 +60,16 @@ jobs:
5560
id: building-lib
5661
run: |
5762
cd build
58-
cmake --build . --config Release --target casbin -j 10 --
63+
cmake --build . --config Debug --target casbin gtest gtest_main gmock gmock_main casbintest -j 10 --
64+
- name: Tests
65+
id: test-lib
66+
run: |
67+
cd build
68+
ctest -j10 -C Debug -T test --output-on-failure -T test --output-on-failure
5969
- name: Cleanup
6070
id: clean-up
6171
run: |
6272
rm -r build
63-
rm -r lib
6473
6574
macos:
6675
name: "macOS Catalina 10.15 (AppleClang 12.0)"
@@ -76,7 +85,12 @@ jobs:
7685
- name: Building library
7786
id: building-lib
7887
run: |
79-
cd build && cmake --build . --config Debug --target all -j 10 --
88+
cd build && cmake --build . --config Debug --target all install -j 10 --
89+
- name: Tests
90+
id: test-lib
91+
run: |
92+
cd build
93+
ctest -j10 -C Debug -T test --output-on-failure -T test --output-on-failure
8094
- name: Cleanup
8195
id: clean-up
8296
run: |

0 commit comments

Comments
 (0)