feat(driver): extract driver into temp folder when running playwright (#74)
This commit is contained in:
@@ -20,27 +20,9 @@ jobs:
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- run: mkdir -p driver
|
||||
- name: Install driver
|
||||
working-directory: driver
|
||||
env:
|
||||
OS: ${{ matrix.os }}
|
||||
shell: bash
|
||||
run: |
|
||||
FILE_NAME="unkwnown"
|
||||
if [[ $OS == *"ubuntu"* ]]; then
|
||||
FILE_NAME=playwright-cli-0.160.0-next.1604357190081-linux.zip
|
||||
fi
|
||||
if [[ $OS == *"macos"* ]]; then
|
||||
FILE_NAME=playwright-cli-0.160.0-next.1604357190081-mac.zip
|
||||
fi
|
||||
if [[ $OS == *"windows"* ]]; then
|
||||
FILE_NAME=playwright-cli-0.160.0-next.1604357190081-win32_x64.zip
|
||||
fi
|
||||
echo "Downloading from $FILE_NAME"
|
||||
curl -O https://playwright.azureedge.net/builds/cli/next/$FILE_NAME
|
||||
unzip $FILE_NAME -d .
|
||||
./playwright-cli install
|
||||
run: scripts/download_driver.sh
|
||||
- name: Build with Maven
|
||||
run: mvn -B package -D skipTests --no-transfer-progress
|
||||
- name: Run tests
|
||||
|
||||
Reference in New Issue
Block a user