Skip to content
14 changes: 7 additions & 7 deletions .github/workflows/pr-gated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "18.15"
node-version: "18.17"
- run: node -v
- run: npm ci
- run: npm run audit
- run: npm run test:unit-test
- run: npm run vsix
# - name: retry 5 times e2e test cases
# uses: nick-fields/retry@v2
# with:
# timeout_minutes: 10
# max_attempts: 5
# command: npm run test:e2e
- name: retry 5 times e2e test cases
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 5
command: npm run test:e2e
- name: upload VSIX to artifactory
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "18.15"
node-version: "18.17"
- run: node -v
- run: npm ci
env:
Expand Down
112 changes: 56 additions & 56 deletions .pipelines/pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,75 +4,75 @@
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

trigger:
- main
- main

pr:
- main
- main

pool:
vmImage: "windows-latest"
vmImage: "windows-latest"
variables:
CI: 'true'
CI: "true"

steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15.0"
displayName: "Install Node.js"
- task: NodeTool@0
inputs:
versionSpec: "18.17.0"
displayName: "Install Node.js"

- task: Npm@1
displayName: "npm clean-install"
inputs:
command: "ci"
- task: Npm@1
displayName: "npm clean-install"
inputs:
command: "ci"

- task: Npm@1
displayName: "audit"
inputs:
command: "custom"
customCommand: "run audit"
- task: Npm@1
displayName: "audit"
inputs:
command: "custom"
customCommand: "run audit"

- task: Npm@1
displayName: "npm unit test"
inputs:
command: "custom"
customCommand: "run test:unit-test"
- task: Npm@1
displayName: "npm unit test"
inputs:
command: "custom"
customCommand: "run test:unit-test"

- task: Npm@1
displayName: "build VSIX"
inputs:
command: "custom"
customCommand: "run vsix"
- task: Npm@1
displayName: "build VSIX"
inputs:
command: "custom"
customCommand: "run vsix"

# - task: Npm@1
# displayName: "npm e2e test"
# enabled: 'true'
# retryCountOnTaskFailure: 5
# continueOnError: 'true'
# inputs:
# command: "custom"
# customCommand: "run test:e2e"
# - task: Npm@1
# displayName: "npm e2e test"
# enabled: 'true'
# retryCountOnTaskFailure: 5
# continueOnError: 'true'
# inputs:
# command: "custom"
# customCommand: "run test:e2e"

- task: PoliCheck@1
inputs:
inputType: "Basic"
targetType: "F"
targetArgument: "src"
result: "PoliCheck.xml"
- task: PoliCheck@1
inputs:
inputType: "Basic"
targetType: "F"
targetArgument: "src"
result: "PoliCheck.xml"

- task: CopyFiles@2
displayName: "copy VSIX to ArtifactStagingDirectory"
inputs:
contents: '$(System.DefaultWorkingDirectory)/*.vsix'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: CopyFiles@2
displayName: "copy VSIX to ArtifactStagingDirectory"
inputs:
contents: "$(System.DefaultWorkingDirectory)/*.vsix"
targetFolder: $(Build.ArtifactStagingDirectory)

- task: PublishBuildArtifacts@1
displayName: "drop ArtifactStagingDirectory"
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: VSIX
- task: PublishBuildArtifacts@1
displayName: "drop ArtifactStagingDirectory"
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: VSIX

- task: PublishBuildArtifacts@1
displayName: "publish policheck results"
inputs:
PathtoPublish: "$(System.DefaultWorkingDirectory)/../_sdt/logs/PoliCheck"
ArtifactName: PoliCheck
- task: PublishBuildArtifacts@1
displayName: "publish policheck results"
inputs:
PathtoPublish: "$(System.DefaultWorkingDirectory)/../_sdt/logs/PoliCheck"
ArtifactName: PoliCheck
5 changes: 5 additions & 0 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from '@vscode/test-cli';

export default defineConfig({
files: 'out/src/test/**/*.test.js',
});
7 changes: 6 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher", "esbenp.prettier-vscode"]
"recommendations": [
"dbaeumer.vscode-eslint",
"amodio.tsl-problem-matcher",
"esbenp.prettier-vscode",
"ms-vscode.extension-test-runner"
]
}
8 changes: 5 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@
}
},
{
"name": "Extension Tests",
"name": "Extension UI Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
"--extensionTestsPath=${workspaceFolder}/out/src/test/suite/index",
"--extensions-dir=${workspaceFolder}/.vscode-test/extensions"
],
"outFiles": ["${workspaceFolder}/out/**/*.js", "${workspaceFolder}/dist/**/*.js"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "tasks: watch-tests"
}
]
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off",
"editor.formatOnSave": true
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
}
47 changes: 22 additions & 25 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"version": "2.0.0",
"tasks": [
{
{
"label": "Watch_VSC_PQ_SDK",
"type": "npm",
"script": "watch",
Expand Down Expand Up @@ -36,41 +36,38 @@
"promptOnClose": true,
"isBackground": true,
"problemMatcher": {
"owner": "webpack",
"severity": "error",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "ERROR in (.*)",
"file": 1
},
{
"regexp": "\\((\\d+),(\\d+)\\):(.*)",
"line": 1,
"column": 2,
"message": 3
"owner": "webpack",
"severity": "error",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "ERROR in (.*)",
"file": 1
},
{
"regexp": "\\((\\d+),(\\d+)\\):(.*)",
"line": 1,
"column": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "Compiling\\.\\.\\.",
"endsPattern": "compiled successfully in"
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "Compiling\\.\\.\\.",
"endsPattern": "compiled successfully in"
}
},
"options": {
"cwd": "${workspaceFolder}/webviews/pq-test-result-view"
}
},
{
"label": "Develop_Extensions",
"dependsOn": [
"Watch_VSC_PQ_SDK",
"Dev_PQTest_Result_WebView"
]
"dependsOn": ["Watch_VSC_PQ_SDK", "Dev_PQTest_Result_WebView"]
},
{
"label": "tasks: watch-tests",
"dependsOn": ["Develop_Extensions", "npm: watch-tests"],
"dependsOn": ["Watch_VSC_PQ_SDK", "Dev_PQTest_Result_WebView", "npm: watch-tests"],
"problemMatcher": []
}
]
Expand Down
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading