Skip to content

coactions/setup-xvfb

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
Dec 19, 2022
Dec 19, 2022
Dec 19, 2022
Dec 19, 2022
Dec 19, 2022
Aug 5, 2024
Dec 19, 2022
Dec 19, 2022
Jan 26, 2024
Dec 19, 2022
Dec 19, 2022
May 17, 2023
Dec 19, 2022
Dec 19, 2022

Repository files navigation

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