summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-09 19:05:09 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-09 19:05:09 -0700
commitc3d62c5ae203aaca32583f75a7e80dfd9f196e11 (patch)
tree2677284a70ad0d0b336d3edb199f0a931c617250 /.github
parenta1fada4e7f0be2d5aa661aee483a59ba93bacb40 (diff)
downloadsncontinue-c3d62c5ae203aaca32583f75a7e80dfd9f196e11.tar.gz
sncontinue-c3d62c5ae203aaca32583f75a7e80dfd9f196e11.tar.bz2
sncontinue-c3d62c5ae203aaca32583f75a7e80dfd9f196e11.zip
fix: :bug: set export display in same step as linux npm test
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 8249b576..269e20be 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -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