-
Notifications
You must be signed in to change notification settings - Fork 219
52 lines (46 loc) · 1.14 KB
/
simorgh-e2e-tests.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
49
50
51
52
name: Simorgh CI - Cypress E2E Tests
on:
create:
branches:
- '**'
pull_request:
branches:
- '**'
push:
branches:
- latest
permissions:
contents: read
jobs:
cypress-run:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
env:
CI: true
LOG_LEVEL: 'error'
CYPRESS_SKIP_EU: true
CYPRESS_SMOKE: true
BFF_PATH: 'https://web-cdn.test.api.bbci.co.uk/fd/simorgh-bff'
CYPRESS_APP_ENV: 'local'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
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: Run Simorgh E2Es
uses: cypress-io/github-action@v6
with:
build: yarn build
start: yarn start
- name: Run Simorgh NextJS E2Es
uses: cypress-io/github-action@v6
with:
working-directory: ws-nextjs-app
build: yarn build
start: yarn start