Skip to content

Merge pull request #516 from VPKSoft/dependabot/npm_and_yarn/webdrive… #556

Merge pull request #516 from VPKSoft/dependabot/npm_and_yarn/webdrive…

Merge pull request #516 from VPKSoft/dependabot/npm_and_yarn/webdrive… #556

Workflow file for this run

name: E2E WebdriverIO Tests
on:
push:
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
release:
environment: Release
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [ubuntu-20.04]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev libwebkit2gtk-4.0-dev webkit2gtk-driver xvfb
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: Sync node version and setup cache
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm' # Set this to npm, yarn or pnpm.
- name: init install folder (Windows)
if: matrix.platform == 'windows-latest'
run: ${{ github.workspace }}\init.ps1
- name: init install folder (Linux & Mac)
if: matrix.platform == 'ubuntu-20.04' || matrix.platform == 'macos-latest'
run: ${{ github.workspace }}/init.sh
- name: E2E Linux
if: matrix.platform == 'ubuntu-20.04'
run: |
cd webdriver/webdriverio
npm i
./run_e2e.sh
- name: E2E Windows
if: matrix.platform == 'windows-latest'
run: |
Invoke-WebRequest -URI https://msedgedriver.azureedge.net/121.0.2227.0/edgedriver_win64.zip -OutFile $Env:temp\edgedriver_win64.zip
Expand-Archive -Path $Env:temp\edgedriver_win64.zip -DestinationPath C:\Windows\SysWOW64
cd webdriver\webdriverio
npm i
.\run_e2e.ps1