Skip to content

Commit

Permalink
Run WebDriver in the background
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Dec 10, 2024
1 parent a162cf1 commit 990c230
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ jobs:
- {
os: ubuntu-latest,
description: Chrome,
name: CHROMEDRIVER,
value: chromedriver,
env: CHROMEDRIVER,
binary: chromedriver,
browser: true,
}
- {
os: ubuntu-latest,
description: Firefox,
name: GECKODRIVER,
value: geckodriver,
env: GECKODRIVER,
binary: geckodriver,
browser: true,
firefox: true,
}
- {
os: macos-latest,
description: Safari,
name: SAFARIDRIVER,
value: safaridriver,
env: SAFARIDRIVER,
binary: safaridriver,
browser: true,
}
- { os: ubuntu-24.04, description: Node.js, nodejs: true }
Expand Down Expand Up @@ -130,10 +130,12 @@ jobs:
- name: Set `build-std` `no_std` components
if: matrix.rust.build-std == true && matrix.features.no_std == true
run: echo "BUILD_STD_COMPONENTS=-Zbuild-std=core,alloc" >> $GITHUB_ENV
- name: Set Driver
- name: Start and set WebDriver
if: matrix.driver.browser == true
run: echo "${{ matrix.driver.name }}=${{ matrix.driver.value }}" >> $GITHUB_ENV
- name: Set Environment
run: |
${{ matrix.driver.binary }} --port=9000 &
echo "${{ matrix.driver.env }}_REMOTE=http://127.0.0.1:9000" >> $GITHUB_ENV
- name: Set environment
if: matrix.environment.name != ''
run: echo "${{ matrix.environment.name }}=1" >> $GITHUB_ENV
- name: Test
Expand Down

0 comments on commit 990c230

Please sign in to comment.