|
35 | 35 |
|
36 | 36 | e2e-tests: |
37 | 37 | runs-on: ubuntu-latest |
38 | | - timeout-minutes: 30 |
| 38 | + timeout-minutes: 20 |
39 | 39 |
|
40 | 40 | strategy: |
41 | 41 | matrix: |
@@ -72,13 +72,16 @@ jobs: |
72 | 72 | id: playwright-cache |
73 | 73 | with: |
74 | 74 | path: ~/.cache/ms-playwright |
75 | | - key: ${{ runner.os }}-playwright-${{ hashFiles('react-example/package.json', 'react-example/playwright.config.ts') }} |
| 75 | + key: ${{ runner.os }}-playwright-${{ matrix.browser }}-v${{ hashFiles('react-example/package.json', 'react-example/playwright.config.ts') }} |
76 | 76 | restore-keys: | |
77 | | - ${{ runner.os }}-playwright-${{ hashFiles('react-example/package.json') }}- |
| 77 | + ${{ runner.os }}-playwright-${{ matrix.browser }}- |
78 | 78 | ${{ runner.os }}-playwright- |
79 | | - - name: Install Playwright browsers |
| 79 | + - name: Install Playwright browsers (browser-specific) |
80 | 80 | working-directory: ./react-example |
81 | | - run: yarn playwright:install --with-deps |
| 81 | + run: | |
| 82 | + echo "📥 Installing only ${{ matrix.browser }} browser..." |
| 83 | + yarn playwright install ${{ matrix.browser }} --with-deps |
| 84 | + echo "✅ Browser installation completed" |
82 | 85 | - name: Create environment configuration |
83 | 86 | working-directory: ./react-example |
84 | 87 | run: | |
@@ -116,10 +119,9 @@ jobs: |
116 | 119 | - name: Run Playwright tests |
117 | 120 | working-directory: ./react-example |
118 | 121 | run: | |
119 | | - yarn playwright test --project=${{ matrix.browser }} --reporter=github |
| 122 | + yarn playwright test --project=${{ matrix.browser }} |
120 | 123 | env: |
121 | 124 | CI: true |
122 | | - PLAYWRIGHT_TIMEOUT: 30000 |
123 | 125 | - name: Upload Playwright report |
124 | 126 | uses: actions/upload-artifact@v4 |
125 | 127 | if: always() |
|
0 commit comments