Skip to content

Commit

Permalink
Use staging backend for cypress tests if PR base branch is staging
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Aug 20, 2024
1 parent 9a5e833 commit 3f78039
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ jobs:
- name: Checkout 📥
uses: actions/checkout@v3

- name: Set backend branch
id: backend-branch
run: echo "::set-output name=branch::$(if [[ '${{ github.event.pull_request.base.ref }}' == 'staging' ]]; then echo 'staging'; else echo 'develop'; fi)"

- name: Checkout care 📥
uses: actions/checkout@v3
with:
repository: coronasafe/care
path: care
ref: ${{ steps.backend-branch.outputs.branch }}

- name: Start care docker containers 🐳
run: |
Expand Down

0 comments on commit 3f78039

Please sign in to comment.