From ac811a6422dfa76ef45804cacf78112c463f96f2 Mon Sep 17 00:00:00 2001 From: Debashis Nandi Date: Sun, 25 Aug 2024 22:02:04 +0530 Subject: [PATCH 1/3] Create .github --- .github/workflows/dsa-ci.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/dsa-ci.yaml diff --git a/.github/workflows/dsa-ci.yaml b/.github/workflows/dsa-ci.yaml new file mode 100644 index 0000000..0113eb6 --- /dev/null +++ b/.github/workflows/dsa-ci.yaml @@ -0,0 +1,30 @@ +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: Set up CMake + uses: lukka/get-cmake@v3 + + - name: Install dependencies + run: sudo apt-get install -y libgtest-dev cmake + + - 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 From 2a386c8cad92865c59f8e781e06fe5b83a2ff4d1 Mon Sep 17 00:00:00 2001 From: Debashis Nandi Date: Sun, 25 Aug 2024 22:04:19 +0530 Subject: [PATCH 2/3] Update dsa-ci.yaml --- .github/workflows/dsa-ci.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/dsa-ci.yaml b/.github/workflows/dsa-ci.yaml index 0113eb6..2195986 100644 --- a/.github/workflows/dsa-ci.yaml +++ b/.github/workflows/dsa-ci.yaml @@ -14,11 +14,8 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Set up CMake - uses: lukka/get-cmake@v3 - - name: Install dependencies - run: sudo apt-get install -y libgtest-dev cmake + run: sudo apt-get update && sudo apt-get install -y cmake libgtest-dev - name: Configure CMake run: cmake -S . -B build From 15e8e8c061248141af629ac61b9d0cd1cc41b972 Mon Sep 17 00:00:00 2001 From: Debashis Nandi Date: Sun, 25 Aug 2024 22:07:34 +0530 Subject: [PATCH 3/3] Update 0001_BreadthFirstSearch.cc --- SourceCodes/0003_Graph/0001_BreadthFirstSearch.cc | 1 + 1 file changed, 1 insertion(+) 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)