https://github.com/bcomnes/cleanup-xvfb
Clean up any remaining xvfb processes leftover in a gh-action
https://github.com/bcomnes/cleanup-xvfb
Last synced: about 1 year ago
JSON representation
Clean up any remaining xvfb processes leftover in a gh-action
- Host: GitHub
- URL: https://github.com/bcomnes/cleanup-xvfb
- Owner: bcomnes
- License: mit
- Created: 2019-10-31T20:57:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-31T15:45:17.000Z (about 3 years ago)
- Last Synced: 2024-12-25T23:03:11.783Z (over 1 year ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# cleanup-xvfb
Clean up any remaining xvfb processes leftover in a Github Action.
## Usage
### Pre-requisites
Create a workflow `.yml` file in your repositories `.github/workflows` directory. An [example workflow](#example-workflow) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
### Inputs
None.
### Outputs
None.
### Example workflow
```yaml
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](LICENSE)