From 301513d3a3407c121918a3ded6834b25507fad05 Mon Sep 17 00:00:00 2001 From: Yash Khare Date: Tue, 22 Oct 2024 12:12:50 +0530 Subject: [PATCH] feat: submodule pipeline Signed-off-by: Yash Khare --- .github/workflows/deploy.yml | 2 ++ .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f5b011f0..9965333b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + with: + submodules: recursive - name: Install dependencies run: npm install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..de8425d0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Deployment Workflow + +on: + push: + branches: + - main + pull_request: # Trigger on pull requests + branches: + - main # Specify the target branch for the pull request + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Install dependencies + run: npm install + + - name: Build Next.js app + run: npm run build \ No newline at end of file