Skip to content

Commit

Permalink
Try to improve xvfb
Browse files Browse the repository at this point in the history
  • Loading branch information
neild3r committed Aug 18, 2021
1 parent 1e2ff74 commit 6c9f34a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,25 @@ on: [push, pull_request]

jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v2

- name: Run headless test
uses: GabrielBB/xvfb-action@v1

- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm install
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- name: Run tests
- run: npm test
if: runner.os != 'Linux'

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
if: runner.os == 'Linux'

0 comments on commit 6c9f34a

Please sign in to comment.