Files
Automata/.github/workflows/e2e-tests-pr.yml
OlegIvaniv 5ff3dea7bb ci: Always run e2e tests on PR approval (no-changelog) (#5900)
ci: Always run e2e tests on PR approval
2023-04-04 12:29:52 +02:00

35 lines
929 B
YAML

name: PR E2E
on:
pull_request_review:
types: [submitted]
branch:
- 'master'
jobs:
# We disable this for now because cancelling runs makes the Cypress Cloud tests to hang.
# cancel-previous-runs:
# runs-on: ubuntu-latest
# name: 'Cancel previous e2e test runs'
# strategy:
# matrix:
# node-version: [16.x]
# steps:
# - name: 'Cancel previous runs'
# uses: styfle/cancel-workflow-action@0.9.0
# with:
# access_token: ${{ github.token }}
run-e2e-tests:
name: E2E [Electron/Node 16]
uses: ./.github/workflows/e2e-reusable.yml
if: ${{ github.event.review.state == 'approved' }}
with:
branch: ${{ github.event.pull_request.head.ref }}
user: ${{ github.event.pull_request.user.login || 'PR User' }}
spec: 'e2e/*'
run-env: base:16.18.1
secrets:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}