mirror of
https://github.com/tauri-apps/webdriver-example.git
synced 2026-01-31 00:55:20 +01:00
fix workflow conditionals
This commit is contained in:
8
.github/workflows/webdriver-v1.yml
vendored
8
.github/workflows/webdriver-v1.yml
vendored
@@ -14,12 +14,12 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
platform: [ubuntu-22.04, windows-latest]
|
||||
webdriver-test: [ selenium, webdriverio ]
|
||||
webdriver-test: [selenium, webdriverio]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Tauri dependencies
|
||||
if: matrix.platform == 'ubuntu-latest'
|
||||
if: matrix.platform == 'ubuntu-22.04'
|
||||
run: >
|
||||
sudo apt-get update &&
|
||||
sudo apt-get install -y
|
||||
@@ -68,14 +68,14 @@ jobs:
|
||||
run: cargo install tauri-driver --locked
|
||||
|
||||
- name: run tests using ${{ matrix.webdriver-test }} (Linux)
|
||||
if: matrix.platform == 'ubuntu-latest'
|
||||
if: matrix.platform == 'ubuntu-22.04'
|
||||
run: |
|
||||
pnpm install
|
||||
xvfb-run pnpm test
|
||||
working-directory: v1/webdriver/${{ matrix.webdriver-test }}
|
||||
|
||||
- name: run tests using ${{ matrix.webdriver-test }} (Windows)
|
||||
if: matrix.platform == 'ubuntu-latest'
|
||||
if: matrix.platform == 'windows-latest'
|
||||
run: |
|
||||
pnpm install
|
||||
pnpm test
|
||||
|
||||
10
.github/workflows/webdriver-v2.yml
vendored
10
.github/workflows/webdriver-v2.yml
vendored
@@ -65,8 +65,16 @@ jobs:
|
||||
- name: Install tauri-driver
|
||||
run: cargo install tauri-driver --locked
|
||||
|
||||
- name: run tests using ${{ matrix.webdriver-test }}
|
||||
- name: run tests using ${{ matrix.webdriver-test }} (Linux)
|
||||
if: matrix.platform == 'ubuntu-latest'
|
||||
run: |
|
||||
pnpm install
|
||||
xvfb-run pnpm test
|
||||
working-directory: v2/webdriver/${{ matrix.webdriver-test }}
|
||||
|
||||
- name: run tests using ${{ matrix.webdriver-test }} (Windows)
|
||||
if: matrix.platform == 'windows-latest'
|
||||
run: |
|
||||
pnpm install
|
||||
pnpm test
|
||||
working-directory: v1/webdriver/${{ matrix.webdriver-test }}
|
||||
|
||||
Reference in New Issue
Block a user