Skip to content

Commit

Permalink
Fix install old chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Sep 19, 2023
1 parent dd58896 commit 511f35f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,18 @@ jobs:
env:
CHROME_VERSION: ${{ matrix.chrome_version }}
run: |
npx @puppeteer/browsers install "chrome@$CHROME_VERSION"
sudo mv chrome/linux-${CHROME_VERSION}/chrome-linux64/chrome /opt/google/chrome/google-chrome
CHROME_VERSION=$(echo $CHROME_VERSION | cut -d '.' -f 1)
echo "CHROMEDRIVER_VERSION=$(curl --location --fail --retry 10 http://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_VERSION})" >> $GITHUB_ENV
- if: matrix.chrome_version == 'current' && startsWith(matrix.os, 'ubuntu')
run: |
CHROME_VERSION=$("$CHROMEAPP" --version | cut -f 3 -d ' ')
echo "CHROMEDRIVER_VERSION=$CHROME_VERSION" >> $GITHUB_ENV
- if: matrix.chrome_version == 'current' && startsWith(matrix.os, 'maos')
env:
CHROME_VERSION: '114.0.5735.90'
- if: matrix.chrome_version == 'current' && startsWith(matrix.os, 'macos')
run: |
CHROME_VERSION=$(echo $CHROME_VERSION | cut -d '.' -f 1)
CHROME_VERSION=$("$CHROMEAPP" --version | cut -f 3 -d ' ')
echo "CHROMEDRIVER_VERSION=$CHROME_VERSION" >> $GITHUB_ENV
- uses: ./
if: matrix.branch == 'now'
Expand Down

0 comments on commit 511f35f

Please sign in to comment.