Skip to content

Commit 30a0af8

Browse files
committed
try fix: manual i chrome and chromedriver
1 parent fe237e6 commit 30a0af8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-trunk.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616

17+
- name: Setup Chrome
18+
uses: browser-actions/setup-chrome@latest
19+
20+
- name: Download and setup ChromeDriver
21+
run: |
22+
CHROME_VERSION=$(google-chrome-stable --version | cut -d ' ' -f3) &&
23+
CHROMEDRIVER_VERSION=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION") &&
24+
curl -LO "https://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip" &&
25+
unzip chromedriver_linux64.zip &&
26+
sudo mv chromedriver /usr/local/bin/ &&
27+
sudo chmod +x /usr/local/bin/chromedriver
28+
1729
- name: Install server dependencies
1830
run: npm ci
1931
working-directory: server

0 commit comments

Comments
 (0)