Skip to content

Commit

Permalink
chore: optimize Cypress recordings with conditional triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
adeldhis2 committed Apr 24, 2024
1 parent eb9152a commit da731f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v6
with:
record: true
record: ${{ contains(github.event.pull_request.title, '[e2e record]') || contains(github.event.head_commit.message, '[e2e record]') }}
parallel: true
group: e2e-chrome-parallel-${{ matrix.versions }}
browser: chrome
Expand All @@ -108,7 +108,7 @@ jobs:
wait-on-timeout: 300
env:
CI: true
CYPRESS_RECORD_KEY: '6b0bce0d-a4e8-417b-bbee-9157cbe9a999'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_dhis2BaseUrl: ${{ steps.instance-url.outputs.url }}
CYPRESS_dhis2InstanceVersion: ${{matrix.versions}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/verify-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v6
with:
record: true
record: ${{ contains(github.event.pull_request.title, '[e2e record]') || contains(github.event.head_commit.message, '[e2e record]') }}
parallel: true
group: e2e-chrome-parallel-dev
browser: chrome
Expand All @@ -135,7 +135,7 @@ jobs:
wait-on-timeout: 300
env:
CI: true
CYPRESS_RECORD_KEY: '6b0bce0d-a4e8-417b-bbee-9157cbe9a999'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_dhis2BaseUrl: ${{ secrets.CYPRESS_DHIS2_INSTANCES_BASE_URL }}/ca-test-dev
CYPRESS_dhis2InstanceVersion: ${{ needs.instance-version.outputs.version }}
Expand Down

0 comments on commit da731f3

Please sign in to comment.