Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
airplay

GitHub Action

gabrielbb/xvfb-action

v1.2

gabrielbb/xvfb-action

airplay

gabrielbb/xvfb-action

Run your headless tests with XVFB

Installation

Copy and paste the following snippet into your .yml file.

              

- name: gabrielbb/xvfb-action

uses: GabrielBB/xvfb-action@v1.2

Learn more about this action in GabrielBB/xvfb-action

Choose a version

❌🖥️ XVFB Github Action

This Github Action installs XVFB and runs your headless tests with it. It cleans up the xvfb process after your tests are done. If it detects you're not using linux then your tests still run, but without xvfb, which is very practical for multi-platform workflows.

Example usage

on: [push]

jobs:
  build:
    strategy:
      matrix:
        os: [macos-latest, ubuntu-latest, windows-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Run headless test
        uses: GabrielBB/xvfb-action@v1.2
        with:
          working-directory: ./ #optional
          run: npm test