1
0
mirror of synced 2026-08-04 14:36:55 +00:00

feat(driver): extract driver into temp folder when running playwright (#74)

This commit is contained in:
Yury Semikhatsky
2020-11-16 22:58:59 -08:00
committed by GitHub
parent eeb8bd16c9
commit 6676cdd5b2
7 changed files with 131 additions and 43 deletions
+1 -19
View File
@@ -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