diff --git a/.github/workflows/pr_ci_playwright_e2e.yaml b/.github/workflows/pr_ci_playwright_e2e.yaml index 402987e1e..f95d70307 100644 --- a/.github/workflows/pr_ci_playwright_e2e.yaml +++ b/.github/workflows/pr_ci_playwright_e2e.yaml @@ -52,6 +52,19 @@ jobs: run: | sudo yarn playwright install --with-deps + - name: Ensure gh-pages branch exists + run: | + git fetch + if ! git show-ref --verify --quiet refs/heads/gh-pages; then + echo "gh-pages branch does not exist. Creating..." + git checkout --orphan gh-pages + git rm -rf . + echo "# GitHub Pages" > index.html + git add index.html + git commit -m "Initial commit" + git push origin gh-pages + fi + - name: Wait for web server to be ready with retry working-directory: ./frontend run: | @@ -82,19 +95,6 @@ jobs: run: | sudo yarn playwright test --reporter=html - - name: Ensure gh-pages branch exists - run: | - git fetch - if ! git show-ref --verify --quiet refs/heads/gh-pages; then - echo "gh-pages branch does not exist. Creating..." - git checkout --orphan gh-pages - git rm -rf . - echo "# GitHub Pages" > index.html - git add index.html - git commit -m "Initial commit" - git push origin gh-pages - fi - - name: Upload Playwright report if: always() uses: actions/upload-artifact@v4