Skip to content
/ cleanup-xvfb Public template

Clean up any remaining xvfb processes leftover in a gh-action

License

Notifications You must be signed in to change notification settings

bcomnes/cleanup-xvfb

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

Repository files navigation

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: [14.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v2
      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

License

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

About

Clean up any remaining xvfb processes leftover in a gh-action

Resources

License

Stars

Watchers

Forks

Packages

No packages published