From 1c2fd696e5ac44720e07fa3981d3943abb8692ec Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Mon, 7 Oct 2024 17:29:06 +0200 Subject: [PATCH] Add github actions to run on develop branch as well --- .github/workflows/backend_build.yml | 1 + .github/workflows/docker_build.yml | 4 ++++ .github/workflows/docker_publish_image.yml | 2 ++ .github/workflows/frontend_build.yml | 6 +++--- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/backend_build.yml b/.github/workflows/backend_build.yml index e34ddc94..36a51d68 100644 --- a/.github/workflows/backend_build.yml +++ b/.github/workflows/backend_build.yml @@ -3,6 +3,7 @@ on: push: branches: - master + - develop paths: - "backend/**" - ".github/workflows/backend_build.yml" diff --git a/.github/workflows/docker_build.yml b/.github/workflows/docker_build.yml index ff967f03..39574f2f 100644 --- a/.github/workflows/docker_build.yml +++ b/.github/workflows/docker_build.yml @@ -4,12 +4,16 @@ on: push: branches: - master + - develop + paths: - "backend/**" - ".github/workflows/docker_build.yml" pull_request: branches: - master + - develop + paths: - "backend/**" - ".github/workflows/docker_build.yml" diff --git a/.github/workflows/docker_publish_image.yml b/.github/workflows/docker_publish_image.yml index 3bf592da..29fdc7f5 100644 --- a/.github/workflows/docker_publish_image.yml +++ b/.github/workflows/docker_publish_image.yml @@ -4,6 +4,8 @@ on: push: branches: - master + - develop + paths-ignore: - ".github/workflows/backend_build.yml" - ".github/workflows/frontend_build.yml" diff --git a/.github/workflows/frontend_build.yml b/.github/workflows/frontend_build.yml index c9b1ec9a..09c66ded 100644 --- a/.github/workflows/frontend_build.yml +++ b/.github/workflows/frontend_build.yml @@ -2,12 +2,12 @@ name: Frontend Build on: push: - branches: [master] + branches: [master,develop] paths: - "frontend/**" - ".github/workflows/frontend_build.yml" pull_request: - branches: [master] + branches: [master,develop] paths: - "frontend/**" - ".github/workflows/frontend_build.yml" @@ -34,7 +34,7 @@ jobs: - name: Install dependencies run: | cd frontend/ - npm install --legacy-peer-deps + npm install - name: Build run: |