WS-1097 Referrer based reordering of OJ components #5671
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 - 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 |