File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,9 +130,20 @@ jobs:
130130 - name : Install dependencies
131131 run : pnpm install --frozen-lockfile
132132
133- - name : Install Playwright browsers
134- working-directory : ./e2e/testcafe-devextreme
135- run : npx playwright install chromium
133+ - name : Install system Chromium
134+ run : |
135+ if ! command -v chromium &>/dev/null && ! command -v chromium-browser &>/dev/null; then
136+ sudo apt-get update && sudo apt-get install -y chromium || sudo apt-get install -y chromium-browser
137+ fi
138+ CHROMIUM_PATH=$(command -v chromium || command -v chromium-browser || echo "")
139+ if [ -z "$CHROMIUM_PATH" ]; then
140+ echo "Chromium not found, falling back to Playwright bundled browser"
141+ cd e2e/testcafe-devextreme && npx playwright install chromium
142+ else
143+ echo "PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=$CHROMIUM_PATH" >> $GITHUB_ENV
144+ echo "Using system Chromium at: $CHROMIUM_PATH"
145+ $CHROMIUM_PATH --version
146+ fi
136147
137148 - name : Run Playwright tests
138149 working-directory : ./e2e/testcafe-devextreme
You can’t perform that action at this time.
0 commit comments