diff --git a/.github/workflows/dsa-ci.yaml b/.github/workflows/dsa-ci.yaml new file mode 100644 index 0000000..2195986 --- /dev/null +++ b/.github/workflows/dsa-ci.yaml @@ -0,0 +1,27 @@ +name: DSA-CI + +on: + push: + branches: [ main, release ] + pull_request: + branches: [ main, release ] + +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 cmake libgtest-dev + + - name: Configure CMake + run: cmake -S . -B build + + - name: Build + run: cmake --build build + + - name: Run tests + run: ctest --test-dir build --output-on-failure diff --git a/SourceCodes/0003_Graph/0001_BreadthFirstSearch.cc b/SourceCodes/0003_Graph/0001_BreadthFirstSearch.cc index 43e99a3..fa88deb 100644 --- a/SourceCodes/0003_Graph/0001_BreadthFirstSearch.cc +++ b/SourceCodes/0003_Graph/0001_BreadthFirstSearch.cc @@ -2,6 +2,7 @@ #include #include #include +#include using namespace std; Node::Node(char value)