fix: 🐛 set export display in same step as linux npm test

This commit is contained in:
Nate Sesti 2023-08-09 19:05:09 -07:00
parent a1fada4e7f
commit c3d62c5ae2

View file

@ -120,17 +120,20 @@ jobs:
cd extension
npm run package
- name: Install Xvfb for Linux
- name: Install Xvfb for Linux and run tests
run: |
sudo apt-get install -y xvfb # Install Xvfb
Xvfb :99 & # Start Xvfb
export DISPLAY=:99 # Export the display number to the environment
cd extension
npm run test
if: matrix.os == 'ubuntu-20.04'
- name: Run extension tests
run: |
cd extension
npm run test
if: matrix.os != 'ubuntu-20.04'
# Package again and build+upload the .vsix
- name: Remove exe directory and re-package