Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 23 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
name: Run Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['^16']
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn test
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
## use version for current vscode until the last supported version (^1.66.0)
# see here: https://github.com/ewanharris/vscode-versions
- name: Node 18 - VSCode >= 1.82.0
node-version: 18
vscode-version: "1.82.0"
- name: Node 16 - VSCode >= 1.66.0 && < 1.82.0
node-version: 16
vscode-version: "1.66.0"
name: ${{ join(matrix.config.name, ' - ') }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.config.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn add -D "@types/vscode@${{ matrix.config.vscode-version }}"
- run: yarn test
31 changes: 19 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "backseat-debug",
"displayName": "Backseat Debug",
"version": "0.5.0",
"version": "0.5.1",
"publisher": "thejp",
"description": "Backseat (bslang, .bs) and Bssembler (.bsm) – debugger for Bssembler and syntax highlighting for both.",
"author": {
Expand Down Expand Up @@ -55,22 +55,25 @@
"publish": "vsce publish",
"publish-pre-release": "vsce publish --pre-release",
"vscode:prepublish": "rimraf dist && npm run -S esbuild-base -- --minify",
"test": "npm run typecheck"
"syntax-test": "npx vscode-tmgrammar-test './tests/*.bs' -g ./syntaxes/bslang.tmLanguage.json",
"generate-syntax-test-snapshot": "npx vscode-tmgrammar-snap --updateSnapshot './tests/*.bs' -g ./syntaxes/bslang.tmLanguage.json",
"test": "npm run typecheck && npm run syntax-test"
},
"devDependencies": {
"@types/node": "^14.14.37",
"@types/node": "^16.18.54",
"@types/vscode": "^1.66.0",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"@vscode/debugadapter": "^1.56.0",
"@vscode/debugadapter-testsupport": "^1.56.0",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@vscode/debugadapter": "^1.63.0",
"@vscode/debugadapter-testsupport": "^1.63.0",
"await-notify": "^1.0.1",
"esbuild": "^0.14.29",
"eslint": "^8.12.0",
"typescript": "^4.6.3",
"rimraf": "^3.0.2",
"esbuild": "^0.19.4",
"eslint": "^8.50.0",
"rimraf": "^5.0.5",
"tmp-promise": "^3.0.3",
"vsce": "^2.7.0"
"typescript": "^5.2.2",
"vsce": "^2.15.0",
"vscode-tmgrammar-test": "^0.1.2"
},
"main": "./dist/extension.js",
"activationEvents": [
Expand All @@ -91,6 +94,10 @@
},
{
"id": "bslang",
"aliases": [
"Bslang",
"Backseat Language"
],
"extensions": [
".bs"
],
Expand Down
5 changes: 4 additions & 1 deletion sampleWorkspace/test.bs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//TODO: update this file, some syntax chnaged, see https://github.com/mgerhold/kiddo/blob/main/test.bs


import std.console;
// a comment here :)

Expand Down Expand Up @@ -380,4 +383,4 @@ namespace std {
std::assert(a >= 42 != false);
}

}
}
Loading