-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9057a44
commit bc3d8f9
Showing
1 changed file
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,30 @@ | ||
pool: | ||
vmImage: "ubuntu-latest" | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: "18.x" | ||
displayName: "Install Node.js" | ||
versionSpec: '18.x' | ||
displayName: 'Install Node.js' | ||
|
||
- script: | | ||
npm install | ||
displayName: "Installing dependencies" | ||
displayName: 'Installing dependencies' | ||
- script: npm run build | ||
displayName: "Compiling typescript" | ||
|
||
- script: NODE_ENV=$(NODE_ENV) LOG_LEVEL=debug DB_PWD=$(DB_PASSWORD) DB_USER=$(DB_USERNAME) DB_HOST=$(DB_HOST) DB_NAME=$(DB_NAME) ./node_modules/.bin/jest --forceExit ./build/test/ | ||
displayName: "Running tests" | ||
- script: NODE_ENV=$(NODE_ENV) LOG_LEVEL=debug DB_PWD=$(DB_PASSWORD) DB_USER=$(DB_USERNAME) DB_HOST=$(DB_HOST) DB_NAME=$(DB_NAME) ./node_modules/.bin/jest --forceExit | ||
displayName: 'Running tests' | ||
|
||
- task: PublishTestResults@2 | ||
condition: succeededOrFailed() | ||
inputs: | ||
testRunner: JUnit | ||
testResultsFiles: "**/test-report.xml" | ||
testResultsFiles: '**/test-report.xml' | ||
|
||
- script: NODE_ENV=$(NODE_ENV) LOG_LEVEL=debug DB_PWD=$(DB_PASSWORD) DB_USER=$(DB_USERNAME) DB_HOST=$(DB_HOST) DB_NAME=$(DB_NAME) ./node_modules/.bin/jest --coverage --forceExit ./build/test/ | ||
displayName: "Running test coverage" | ||
- script: NODE_ENV=$(NODE_ENV) LOG_LEVEL=debug DB_PWD=$(DB_PASSWORD) DB_USER=$(DB_USERNAME) DB_HOST=$(DB_HOST) DB_NAME=$(DB_NAME) ./node_modules/.bin/jest --coverage --forceExit | ||
displayName: 'Running test coverage' | ||
condition: succeededOrFailed() | ||
|
||
- task: PublishCodeCoverageResults@1 | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: "$(Build.SourcesDirectory)/**/*coverage.xml" | ||
summaryFileLocation: '$(Build.SourcesDirectory)/**/*coverage.xml' |