Skip to content

Commit

Permalink
switch to xvfb action
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel OBrien committed Jan 30, 2024
1 parent 96389ef commit e8cd5d1
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,24 @@ jobs:
- name: Install dependencies
run: yarn

- name: Setup build environment
run: |
sudo apt-get update
sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libnss3 libasound2 libgbm-dev
sudo cp test/xvfb.init /etc/init.d/xvfb
sudo chmod +x /etc/init.d/xvfb
sudo update-rc.d xvfb defaults
sudo service xvfb start
sudo service dbus restart
export $(dbus-launch)
- name: Build
run: yarn run vscode:prepublish
# - name: Setup build environment
# run: |
# sudo apt-get update
# sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0 libnss3 libasound2 libgbm-dev
# sudo cp test/xvfb.init /etc/init.d/xvfb
# sudo chmod +x /etc/init.d/xvfb
# sudo update-rc.d xvfb defaults
# sudo service xvfb start
# sudo service dbus restart
# export $(dbus-launch)

- name: Setup xvfb
uses: GabrielBB/[email protected]
with:
run: yarn run vscode:prepublish

# - name: Build
# run: yarn run vscode:prepublish

- name: Test
run: DISPLAY=:1 yarn test
Expand Down

0 comments on commit e8cd5d1

Please sign in to comment.