Created
March 17, 2023 13:18
-
-
Save mimiz/6e9d8a82a1299e22006f5f79cc7965ba to your computer and use it in GitHub Desktop.
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
variables: | |
node_version: 16.19.1 | |
pool: | |
vmImage: 'ubuntu-latest' | |
steps: | |
- task: NodeTool@0 | |
inputs: | |
versionSpec: $(node_version) | |
- task: Npm@1 | |
displayName: Install NPM Dependencies | |
inputs: | |
command: install | |
workingDir: $(System.DefaultWorkingDirectory)/path/to/node-application | |
- script: npm run test | |
workingDirectory: $(System.DefaultWorkingDirectory)/path/to/node-application | |
displayName: 'Execute unit tests' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment