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
34 changes: 34 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,37 @@ jobs:
path: |
test-resources/screenshots/*.png
retention-days: 2

Smoke-Test-Web:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Update yaml-language-server
run: npm i yaml-language-server@next
- name: Build extension
run: npm run build
- name: Run tests on web
run: xvfb-run npm run smoke-test-web

Smoke-Test-Desktop:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Update yaml-language-server
run: npm i yaml-language-server@next
- name: Build extension
run: npm run build
- name: Run tests on web
run: xvfb-run npm run smoke-test
6 changes: 6 additions & 0 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from '@vscode/test-cli';

export default defineConfig({
files: 'out/smoke-test/**/*.test.js',
workspaceFolder: './smoke-test/',
});
2 changes: 2 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionDevelopmentKind=web"
],
"sourceMaps": true,
"env": {
"DEBUG_VSCODE_YAML": "true",
"VSCODE_REDHAT_TELEMETRY_DEBUG":"true"
},
"outFiles": ["${workspaceRoot}/dist/**/*.js"],
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@
"other": true,
"comments": true,
"strings": true
}
},
"yaml.schemas": {},
"yaml.schemaStore.enable": true
}
Loading
Loading