Revert navigateToHome changes: restore original implementation #41
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: CI/CD with BrowserStack | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Run E2E Tests on BrowserStack | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: 📥 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 📦 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: 📥 Install dependencies | |
| run: npm ci | |
| - name: 🧪 Run E2E Tests on BrowserStack | |
| run: npm run test:e2e:browserstack:all | |
| env: | |
| BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | |
| BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
| BROWSERSTACK_APP_ID: ${{ secrets.BROWSERSTACK_APP_ID }} | |
| - name: 📊 Generate Allure Report | |
| if: always() | |
| run: npx allure-commandline generate allure-results --clean -o allure-report || echo "No results" | |
| - name: 📤 Upload Test Results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: | | |
| allure-results/ | |
| test-results/ | |
| screenshots/ | |
| retention-days: 7 | |
| if-no-files-found: ignore |