-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 1000 Bytes
/
e2e.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
name: e2e
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
on: [push, deployment, deployment_status]
# Cancel previously running jobs
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
e2e:
# only runs this job on successful deploy
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout 🛎
uses: actions/checkout@v4
- name: Setup Node.js & Yarn
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
# Run Cypress
- name: Run Cypress 🌲
uses: cypress-io/github-action@v6
with:
install-command: yarn install --immutable
env:
CYPRESS_BASE_URL: ${{ github.event.deployment_status.target_url }}