From 0db778630c4185ee1470216f94d4547fb30a5034 Mon Sep 17 00:00:00 2001 From: ereti <43418802+ereti@users.noreply.github.com> Date: Mon, 22 Nov 2021 18:54:16 +0000 Subject: [PATCH] run tests on all branches --- server/.github/workflows/test-build-deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/.github/workflows/test-build-deploy.yml b/server/.github/workflows/test-build-deploy.yml index b0833530a..394bbca80 100644 --- a/server/.github/workflows/test-build-deploy.yml +++ b/server/.github/workflows/test-build-deploy.yml @@ -2,7 +2,6 @@ name: Test, Build, Deploy on: push: - branches: [master, develop] pull_request: branches: [master, develop] workflow_dispatch: @@ -56,7 +55,7 @@ jobs: docker-push: runs-on: ubuntu-latest needs: [test] - if: github.event_name == 'push' + if: github.event_name == 'push' && (github.ref == "refs/heads/develop" || github.ref == "ref/heads/master") steps: - name: Checkout uses: actions/checkout@v2 @@ -95,7 +94,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: [docker-push] - if: github.event_name == 'push' + if: github.event_name == 'push' && (github.ref == "refs/heads/develop" || github.ref == "ref/heads/master") steps: - name: Deploy to staging if: github.ref == 'refs/heads/develop'