Skip to content

Commit

Permalink
try using xvfb-run
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Oct 24, 2023
1 parent 641c126 commit da3a4c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ jobs:
lfs: true
persist-credentials: false

# setup xvfb
- run: sudo apt-get update && sudo apt-get install -y xvfb x11-xserver-utils xauth

# setup firefox
- uses: browser-actions/setup-firefox@v1
- run: firefox --version
Expand Down Expand Up @@ -146,7 +149,7 @@ jobs:
WORDPRESS_VERSION: ${{ matrix.wp-versions }}

# run tests
- run: npm run wdio
- run: xvfb-run --auto-servernum npm run wdio
env:
PHP_VERSION: ${{ matrix.php-versions }}
WOOCOMMERCE: 1
Expand Down

0 comments on commit da3a4c5

Please sign in to comment.