Skip to content

Commit 25725ac

Browse files
committed
Add a CI workflow for testing the extension
1 parent fd75b25 commit 25725ac

File tree

3 files changed

+44
-24
lines changed

3 files changed

+44
-24
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run VSCode Extension Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- superbol-vscode-debug
7+
pull_request:
8+
branches:
9+
- superbol-vscode-debug
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Setup Node.js environment
19+
uses: actions/setup-node@v6
20+
with:
21+
node-version-file: 'package.json'
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Compile
27+
run: npm run compile
28+
29+
- name: Run tests
30+
run: xvfb-run -a npm test
31+
if: runner.os == 'Linux'

.github/workflows/nodejs.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"license": "GPL-3.0",
2525
"icon": "icon.png",
2626
"engines": {
27-
"vscode": "^1.44.0"
27+
"vscode": "^1.44.0",
28+
"node": ">=20"
2829
},
2930
"main": "./out/src/extension",
3031
"activationEvents": [
@@ -285,5 +286,16 @@
285286
"@vscode/debugadapter": "^1.51.0",
286287
"@vscode/debugprotocol": "^1.51.0",
287288
"n-readlines": "^1.0.1"
289+
},
290+
"devEngines": {
291+
"runtime": {
292+
"name": "node",
293+
"version": "^20",
294+
"onFail": "error"
295+
},
296+
"packageManager": {
297+
"name": "npm",
298+
"onFail": "error"
299+
}
288300
}
289301
}

0 commit comments

Comments
 (0)