mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
* add testing logging * testing * testing * testing * update env to work correctly * add env to yarn as well * remove unnecessary change
66 lines
1.9 KiB
YAML
66 lines
1.9 KiB
YAML
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSpec: "10.15.1"
|
|
|
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
|
|
inputs:
|
|
keyfile: ".yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock"
|
|
targetfolder: "**/node_modules, !**/node_modules/**/node_modules"
|
|
vstsFeed: "$(build-cache)"
|
|
|
|
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@3
|
|
inputs:
|
|
versionSpec: "1.10.1"
|
|
|
|
- script: |
|
|
yarn --frozen-lockfile
|
|
displayName: Install Dependencies
|
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
|
env:
|
|
GITHUB_TOKEN: $(GITHUB_TOKEN)
|
|
|
|
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
|
|
inputs:
|
|
keyfile: ".yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock"
|
|
targetfolder: "**/node_modules, !**/node_modules/**/node_modules"
|
|
vstsFeed: "$(build-cache)"
|
|
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
|
|
|
|
- script: |
|
|
yarn gulp electron-x64
|
|
displayName: "Electron"
|
|
env:
|
|
GITHUB_TOKEN: $(GITHUB_TOKEN)
|
|
|
|
- script: |
|
|
yarn gulp hygiene
|
|
displayName: Run Hygiene Checks
|
|
|
|
- script: |
|
|
yarn tslint
|
|
displayName: "Run TSLint"
|
|
|
|
- script: |
|
|
yarn strict-null-check
|
|
displayName: "Run Strict Null Check"
|
|
|
|
- script: |
|
|
yarn compile
|
|
displayName: "Compile"
|
|
|
|
- script: |
|
|
.\scripts\test.bat --reporter mocha-junit-reporter --coverage
|
|
displayName: "Test"
|
|
|
|
- task: PublishTestResults@2
|
|
inputs:
|
|
testResultsFiles: "test-results.xml"
|
|
condition: succeededOrFailed()
|
|
|
|
- task: PublishCodeCoverageResults@1
|
|
inputs:
|
|
codeCoverageTool: "cobertura"
|
|
summaryFileLocation: $(System.DefaultWorkingDirectory)\.build\coverage\cobertura-coverage.xml
|
|
reportDirectory: $(System.DefaultWorkingDirectory)\.build\coverage\lcov-report
|