fix workflow conditionals

This commit is contained in:
Lucas Nogueira
2025-04-15 12:39:26 -03:00
parent f68fc6883a
commit c5f31f1fdc
2 changed files with 13 additions and 5 deletions

View File

@@ -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

View File

@@ -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 }}