/
action.yml
48 lines (43 loc) · 1.36 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Run Cypress
description: Clones the repository, installs dependencies, and runs Cypress.
inputs:
e2e-testing-key:
description: The SSH key to use for the E2E testing repository.
default: ''
required: true
wait-on:
description: The URL to wait on before running Cypress.
default: ''
required: false
start:
description: Start
default: ''
required: false
runs:
using: composite
steps:
- name: Checkout E2E testing
uses: actions/checkout@v3.5
with:
repository: 'stampedeapp/e2e-testing'
ref: main
path: e2e-testing
ssh-key: ${{ inputs.e2e-testing-key }}
# We remove the git info from cypress so that it picks up
# the correct git info from the parent repository - `web`
- name: Remove Cypress Git Info
shell: bash
working-directory: e2e-testing
run: rm -rf .git
- name: Cypress run
uses: cypress-io/github-action@v5
with:
install-command: yarn --frozen-lockfile
working-directory: e2e-testing
start: ${{ inputs.start }}
wait-on: ${{ inputs.wait-on }}
record: true
parallel: true
browser: chrome
headed: true
ci-build-id: '${{ github.repository }}-${{ github.workflow }}-${{ github.sha }}-${{ github.run_attempt }}'