coactions/setup-xvfb

Run your tests headlessly by enabling xvfb

JavaScript

57

99 commits

updated Sep 7, 2026

See the code

README

XVFB Github Action

This 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: coactions/setup-xvfb@v1
        with:
          run: npm test
          working-directory: ./ #optional
          options: #optional
github-action
xvfb

Contributors

GabrielBB

70 commits

ssbarnea

13 commits

s1hofmann

9 commits

coactions/setup-xvfb

Run your tests headlessly by enabling xvfb

JavaScript

57

99 commits

updated Sep 7, 2026

See the code

README

XVFB Github Action

This 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: coactions/setup-xvfb@v1
        with:
          run: npm test
          working-directory: ./ #optional
          options: #optional
github-action
xvfb

Contributors

GabrielBB

70 commits

ssbarnea

13 commits

s1hofmann

9 commits

Languages

JavaScript

81.3%

Shell

18.7%