/
githubmirror
/
oppia
Обзор
Документация
Войти
/
githubmirror
/
oppia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
.github/actions/install-chrome/action.yml
26 строк
1 KB
Sean Lip
Refactor CI workflows, including splitting acceptance/e2e/lighthouse tests into their own workflows. (#21363)
12 дек 2024, 11:26
Не верифицирован
12 дек 2024, 11:26
66de2f7
Код
Авторство
О чём код?
name: 'Install Chrome' description: 'Installs Chrome for use in tests' runs: using: 'composite' steps: - id: install-chrome name: Install Chrome (retries on error) uses: nick-fields/retry@v3 env: # This must be one of the versions available from # github.com/webnicer/chrome-downloads. CHROME_VERSION: "102.0.5005.61-1" with: max_attempts: 3 retry_on: error shell: bash timeout_minutes: 10 command: | sudo apt-get update sudo apt-get install libappindicator3-1 curl -L -o google-chrome.deb https://github.com/webnicer/chrome-downloads/raw/master/x64.deb/google-chrome-stable_${{ env.CHROME_VERSION }}_amd64.deb sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome sudo dpkg -i google-chrome.deb chrome_version=$(google-chrome --version 2>&1 | tr -cd '[:digit:].') [[ "${{ env.CHROME_VERSION }}" == "$chrome_version"* ]] || { echo "Error: Desired version does not start with Chrome version."; exit 1;}