Skip to content

Commit

Permalink
Use native xvfb (#1452)
Browse files Browse the repository at this point in the history
* Use native xvfb

* Remove coactions/setup-xvfb from release
  • Loading branch information
peraltafederico authored Jul 1, 2024
1 parent efc8ad3 commit 15aa6ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
with:
node-version: 18

- name: Install xvfb
run: sudo apt-get update -y && sudo apt-get install xvfb

- name: Install Dependencies
run: npm ci
env:
Expand All @@ -82,10 +85,7 @@ jobs:
if: ${{ github.event.inputs.releaseChannel == 'stable' }}

- name: Run Tests
uses: coactions/setup-xvfb@v1
with:
run: npm test
options: "-screen 0 1600x1200x24"
run: xvfb-run --server-args="-screen 0 1600x1200x24" npm test
env:
NODE_ENV: production

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install xvfb
run: sudo apt-get update -y && sudo apt-get install xvfb
- name: 👷 Install Dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🧪 Setup and Test with Runme
uses: coactions/setup-xvfb@v1
with:
run: npx runme run configureNPM setup build test:ci
run: xvfb-run npx runme run configureNPM setup build test:ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUNME_TEST_TOKEN: ${{ secrets.RUNME_TEST_TOKEN }}
Expand Down

0 comments on commit 15aa6ba

Please sign in to comment.