Skip to content

plasma-infra: Automation of the release process #1381

plasma-infra: Automation of the release process

plasma-infra: Automation of the release process #1381

Workflow file for this run

name: Cypress component testing
on:
merge_group:
pull_request:
branches:
- master
- dev
concurrency:
# New commit on branch cancels running workflows of the same branch
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
change-detection:
uses: ./.github/workflows/change-detection.yml
secrets: inherit
change-detection-temple:
uses: ./.github/workflows/change-detection.yml
with:
exclude-dependents: true
secrets: inherit
cypress:
needs: change-detection
if: ${{ needs.change-detection.outputs.HAS_SCOPE == 'true' }}
strategy:
fail-fast: false
matrix:
# [Note]
# Важно что бы массив был со значениями, где `""` экранируются, например -> ["\"b2c\""]
# Можно для этого использовать JSON.stringify()
scope: ${{fromJson(needs.change-detection.outputs.SCOPE)}}
exclude:
- scope: temple
uses: ./.github/workflows/cypress-common.yml
with:
scope: ${{ matrix.scope }}
secrets: inherit
cypress-react-17:
needs: change-detection
if: ${{ needs.change-detection.outputs.HAS_SCOPE == 'true' }}
strategy:
fail-fast: false
matrix:
scope: ${{fromJson(needs.change-detection.outputs.SCOPE)}}
exclude:
- scope: temple
uses: ./.github/workflows/cypress-common.yml
with:
scope: ${{ matrix.scope }}
with-react-17: true
secrets: inherit
cypress-temple:
needs: change-detection-temple
if: ${{ needs.change-detection-temple.outputs.HAS_PLASMA_TEMPLE == 'true' }}
uses: ./.github/workflows/cypress-common.yml
with:
scope: 'temple'
secrets: inherit
cypress-temple-react-17:
needs: change-detection-temple
if: ${{ needs.change-detection-temple.outputs.HAS_PLASMA_TEMPLE == 'true' }}
uses: ./.github/workflows/cypress-common.yml
with:
scope: 'temple'
with-react-17: true
secrets: inherit