WS-935 implement conditional rendering of curations on article page #4482
This file contains hidden or 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: Cypress E2E - Application & NextJS | |
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 (Application) | |
uses: cypress-io/github-action@v6 | |
with: | |
install: false | |
build: yarn build | |
start: yarn start | |
command: yarn cypress:application | |
- name: Install Cypress dependency (Next.js app) | |
run: | | |
chmod +x ./scripts/installCypress.sh | |
./scripts/installCypress.sh ws-nextjs-app | |
- name: Install Cypress binary (Next.js app) | |
working-directory: ws-nextjs-app | |
run: yarn cypress:install | |
- name: Run Simorgh NextJS E2Es | |
uses: cypress-io/github-action@v6 | |
with: | |
install: false | |
working-directory: ws-nextjs-app | |
build: yarn build | |
start: yarn start | |
command: yarn cypress |