Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: simplify bidi install (#37044)

Max Schmitta71a7841d0c5
diff --git a/.github/workflows/tests_bidi.yml b/.github/workflows/tests_bidi.yml
index 22231f1126..f541345313 100644
--- a/.github/workflows/tests_bidi.yml
+++ b/.github/workflows/tests_bidi.yml
@@ -48,16 +48,12 @@ jobs:
- run: npx playwright install --with-deps chromium
if: matrix.channel == 'bidi-chromium'
- if: matrix.channel == 'moz-firefox'
- id: install_firefox
run: |
- npx -y @puppeteer/browsers install firefox@nightly |\
- awk 'END { $1=""; sub(/^ /,""); print "bidi_ffpath="$0 }' |\
- tee -a $GITHUB_OUTPUT
+ echo "BIDI_FFPATH=$(npx -y @puppeteer/browsers install firefox@nightly | tail -n1 | sed 's/^[^ ]* *//')" >> "$GITHUB_ENV"
- name: Run tests
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run biditest -- --project=${{ matrix.channel }}*
env:
PWTEST_USE_BIDI_EXPECTATIONS: '1'
- BIDI_FFPATH: ${{ steps.install_firefox.outputs.bidi_ffpath }}
- name: Upload csv report to GitHub
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4