Skip to content

Commit 99218b6

Browse files
committed
Create helper script for download chrome
1 parent b2285ef commit 99218b6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/download_chrome.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set -e
2+
wget $(curl -s https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json |
3+
jq -r '.versions.[-1].downloads.chrome.[] | select(.platform == "'"${1}"'").url')
4+
unzip chrome*
5+
export BROWSER_PATH="$(realpath chrome-linux64)/chrome"

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
timeout-minutes: 4 # because sometimes it dies
1313
#- uses: ./.github/actions/ # it would be nice but it doesn't support timeout-minutes
1414
- name: Install Dependencies- Chrome
15-
run: wget $(curl -s https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json | jq -r '.versions.[-1].downloads.chrome.[] | select(.platform == "linux64").url') && unzip chrome* && export BROWSER_PATH="$(realpath chrome-linux64)/chrome"
15+
run: chmod +x ./.github/workflows/download_chrome.sh && ./.github/workflows/download_chrome.sh "linux64"
1616
- name: Install choreographer
1717
run: pip install .[dev]
1818
- name: DTDoctor

0 commit comments

Comments
 (0)