Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mimiz/6e9d8a82a1299e22006f5f79cc7965ba to your computer and use it in GitHub Desktop.
Save mimiz/6e9d8a82a1299e22006f5f79cc7965ba to your computer and use it in GitHub Desktop.
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