[back][ext] feat: recommendations API can now return random entities #6214
Workflow file for this run
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: Run end-to-end tests | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
e2e-browser-extension: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Prepare extension | |
working-directory: browser-extension | |
run: | | |
node prepareExtension.js | |
- uses: cypress-io/github-action@v5 | |
with: | |
working-directory: tests | |
browser: chrome | |
headed: true | |
spec: "cypress/e2e/browser-extension/**/*" | |
config: baseUrl=https://www.youtube.com | |
- uses: actions/upload-artifact@v1 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: tests/cypress/screenshots | |
e2e-frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Start dev env | |
run: ./dev-env/run-docker-compose.sh | |
env: | |
FRONTEND_START_SCRIPT: "start:e2e" | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- uses: cypress-io/github-action@v5 | |
with: | |
working-directory: tests | |
browser: chrome | |
spec: "cypress/e2e/frontend/**/*" | |
- name: Print dev-env logs | |
if: failure() | |
working-directory: ./dev-env | |
run: docker-compose logs -t --tail=300 | |
- uses: actions/upload-artifact@v1 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: tests/cypress/screenshots |