diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6ebac46 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: C++ CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y build-essential g++ cmake + + - name: Configure CMake + run: cmake -S . -B build + + - name: Build + run: cmake --build build -- -j$(nproc) + + - name: Run tests + run: ctest --test-dir build --output-on-failure \ No newline at end of file diff --git a/src/ArgParser/ArgParser.cpp b/src/ArgParser/ArgParser.cpp index cee4b87..fcb2961 100644 --- a/src/ArgParser/ArgParser.cpp +++ b/src/ArgParser/ArgParser.cpp @@ -1,5 +1,6 @@ #include "ArgParser/ArgParser.hpp" +#include #include namespace ArgumentParser {