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