update README files (#12056) #40166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Simorgh CI - Cypress E2E Tests | |
on: | |
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 |