diff --git a/.gitea/workflows/actions.yaml b/.gitea/workflows/actions.yaml index c630616..b3fe1e8 100644 --- a/.gitea/workflows/actions.yaml +++ b/.gitea/workflows/actions.yaml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v3 - name: Building binary with make run: | - echo "#define TEST" >> src/AuthService.hpp && \ + echo "#define TEST" >> src/AuthService/AuthService.hpp && \ make -j$(nproc) - name: Testing to run binary builded with make run: ./bin/auth_service @@ -30,7 +30,7 @@ jobs: uses: actions/checkout@v3 - name: Building binary with CMake run: | - echo "#define TEST" >> src/AuthService.hpp && \ + echo "#define TEST" >> src/AuthService/AuthService.hpp && \ mkdir build && \ cd build && \ cmake .. && \ @@ -49,7 +49,7 @@ jobs: uses: actions/checkout@v3 - name: Building binary with meson run: | - echo "#define TEST" >> src/AuthService.hpp && \ + echo "#define TEST" >> src/AuthService/AuthService.hpp && \ meson setup build && \ ninja -C build - name: Testing to run binary builded with meson diff --git a/src/auth_service.cpp b/src/auth_service.cpp index 0e3519a..4e685cf 100644 --- a/src/auth_service.cpp +++ b/src/auth_service.cpp @@ -4,6 +4,7 @@ int main() { AuthService auth_service; #ifdef TEST return 0; -#endif +#else return auth_service.serve("127.0.0.1", 43243); +#endif }