-
Notifications
You must be signed in to change notification settings - Fork 267
48 lines (41 loc) · 1.08 KB
/
simorgh-e2e-pages.yml
File metadata and controls
48 lines (41 loc) · 1.08 KB
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: Cypress E2E - Pages
on:
pull_request:
branches:
- '**'
permissions:
contents: read
jobs:
cypress-run:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
env:
CI: true
LOG_LEVEL: 'error'
CYPRESS_SKIP_EU: true
CYPRESS_SMOKE: true
CYPRESS_APP_ENV: 'local'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Add bbc.com domain
run: sudo echo "127.0.0.1 localhost.bbc.com" | sudo tee -a /etc/hosts
- name: Install Cypress dependency
run: |
chmod +x ./scripts/installCypress.sh
./scripts/installCypress.sh
- name: Install Cypress binary
run: yarn cypress:install
- name: Run Simorgh E2Es (Pages)
uses: cypress-io/github-action@v6
with:
install: false
build: yarn build
start: yarn start
command: yarn cypress:pages