-
Notifications
You must be signed in to change notification settings - Fork 24
/
azure-pipelines.yml
52 lines (42 loc) · 1.15 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
trigger:
- '*'
pool:
vmImage: 'ubuntu-latest'
parameters:
- name: skipTesting
displayName: Skip Testing
type: boolean
default: true
jobs:
- job: nodejs
displayName: "Build and test Javascript"
condition: not( ${{ parameters.skipTesting }} )
steps:
- task: NodeTool@0
displayName: "Install NodeJS + NPM"
inputs:
versionSpec: "16.x"
- script: npm install
displayName: npm install
workingDirectory: "DotnetTemplate.Web"
- script: npm run build
displayName: npm build
workingDirectory: "DotnetTemplate.Web"
- script: npm run test
displayName: npm build
workingDirectory: "DotnetTemplate.Web"
- script: npm run lint
displayName: npm lint
workingDirectory: "DotnetTemplate.Web"
- job: dotnet
displayName: "Build and test .NET"
condition: not( ${{ parameters.skipTesting }} )
steps:
- task: UseDotNet@2
displayName: "Install .NET SDK"
inputs:
version: "8.0.x"
- script: dotnet build
displayName: dotnet build
- script: dotnet test
displayName: dotnet test