diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5cff8de8..f11824266 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -130,11 +130,10 @@ jobs: - name: Test run: npm run test - - name: Test end-to-end - uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1 - with: - working-directory: ${{ github.workspace }} - run: npm run test:e2e + - if: runner.os == 'Linux' + run: xvfb-run npm run test:e2e + - if: ${{ ! runner.os == 'Linux' }} + run: npm run test:e2e - name: Lint run: npm run lint