From 0ed5babd576d751a75c9b97b797b7ddeb3b7f49c Mon Sep 17 00:00:00 2001 From: Matt Karl Date: Sat, 13 Apr 2024 08:24:09 -0400 Subject: [PATCH] Use xvfb --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23da4b4..0e756a9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 + - name: Install xvfb + run: sudo apt-get install xvfb - name: Use Node.js uses: actions/setup-node@v4 with: @@ -21,7 +24,7 @@ jobs: - name: Build run: npm run build - name: Test - run: npm test + run: xvfb-run --auto-servernum npm test - name: Upload to Release if: github.event_name == 'release' uses: softprops/action-gh-release@v2