Skip to content
monitor

GitHub Action

Cleanup xvfb

v1.0.4 Latest version
Use latest version
monitor

Cleanup xvfb

Cleanup any lingering xvfb pids

Installation

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

- name: Cleanup xvfb
  uses: bcomnes/cleanup-xvfb@v1.0.4
Learn more about this action in bcomnes/cleanup-xvfb
Choose a version

cleanup-xvfb

Clean up any remaining xvfb processes leftover in a Github Action.

GitHub Actions status

Usage

Pre-requisites

Create a workflow .yml file in your repositories .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Inputs

None.

Outputs

None.

Example workflow

name: Example cleaning up xvfb

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [12.x]

    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - run: sudo apt-get install xvfb
    - name: npm install, build, and test
      run: |
        npm i
        xvfb-run --auto-servernum npm test
      env:
        CI: true
    - name: Cleanup xvfb pidx
      uses: bcomnes/cleanup-xvfb@v1

Contributing

PRs welcome. Honor and respect.

License

The scripts and documentation in this project are released under the MIT License

You can’t perform that action at this time.