Skip to content

Commit

Permalink
Run Chrome tests for Ruby on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Nov 26, 2022
1 parent e183ceb commit db43c94
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ jobs:
chrome-test:
if: ${{ needs.check_workflow.outputs.result == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(toJson(github.event.commits), '[run ruby]') == true }}
needs: check_workflow
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
target: [ 'chrome-test', 'remote-chrome-test' ]
os: [ 'ubuntu-latest', 'windows-latest' ]
steps:
- name: Checkout source tree
uses: actions/checkout@v2
Expand All @@ -66,13 +67,21 @@ jobs:
workflow: ruby
key: ${{ matrix.target }}
- name: Setup Fluxbox
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get -y install fluxbox
- name: Setup Chrome
uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable
- name: Start XVFB
if: matrix.os == 'ubuntu-latest'
run: Xvfb :99 &
- name: Start Fluxbox
if: matrix.os == 'ubuntu-latest'
run: fluxbox -display :99 &
- name: Set resolution
if: matrix.os == 'windows-latest'
run: Set-DisplayResolution -Width 1920 -Height 1080 -Force
- name: Run Chrome tests
uses: ./.github/actions/bazel
with:
Expand Down

0 comments on commit db43c94

Please sign in to comment.