Skip to content

Commit

Permalink
Run tests on linux as well (#32)
Browse files Browse the repository at this point in the history
Run tests on linux as well
  • Loading branch information
fvclaus authored Dec 22, 2024
1 parent dd8b8cc commit ca6c011
Showing 1 changed file with 43 additions and 6 deletions.
49 changes: 43 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ on:


jobs:
build:
name: tests
# Run on windows because it provides a graphics server
runs-on: windows-latest
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
Expand All @@ -23,9 +21,48 @@ jobs:
- run: npm run lint
- run: npm run test:unit
- run: npm run test:benchmark
- run: npm run test:vsc

extension-test-windows:
# Run on windows because it provides a graphics server
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: '18.20.4'
- run: npm install
- name: Run lowest supported version
run: npm run test:vsc
env:
VSCODE_VERSION: "1.44.0"
- name: Run newish version
run: npm run test:vsc
env:
VSCODE_VERSION: "1.96.2"

extension-test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: '18.20.4'
- run: npm install
- name: Run lowest supported version
env:
VSCODE_VERSION: "1.44.0"
- run: npm run test:vsc
run: |
export DISPLAY=':99.0'
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
npm run test:vsc
- name: Run newish version
env:
VSCODE_VERSION: "1.96.2"
run: |
export DISPLAY=':99.0'
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
npm run test:vsc

0 comments on commit ca6c011

Please sign in to comment.