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
…8362)

* Use staging backend for cypress tests if PR base branch is staging

* switch to using environment files

* correct default branch name
  • Loading branch information
rithviknishad authored Aug 21, 2024
1 parent 0e25ace commit b71816d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,21 @@ jobs:
- name: Checkout 📥
uses: actions/checkout@v3

- name: Set backend branch
id: backend-branch
run: |
if [[ '${{ github.event.pull_request.base.ref }}' == 'staging' ]]; then
echo "branch=staging" >> $GITHUB_OUTPUT
else
echo "branch=develop" >> $GITHUB_OUTPUT
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 b71816d

Please sign in to comment.