forked from Azure/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackagesTest.yml
63 lines (53 loc) · 1.74 KB
/
PackagesTest.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
53
54
55
56
57
58
59
60
61
62
63
parameters:
- name: official
type: boolean
- name: rid
type: string
- name: artifactSuffix
type: string
steps:
# need dotnet because the e2e tests invoke dotnet build internally
- task: UseDotNet@2
displayName: Setup .NET Core
continueOnError: true
inputs:
packageType: 'sdk'
useGlobalJson: true
performMultiLevelLookup: true
- task: NodeTool@0
displayName: Setup Node.js
inputs:
versionSpec: 10.x
- script: npm ci
displayName: npm ci
workingDirectory: $(Build.SourcesDirectory)/src/Bicep.MSBuild.E2eTests
- script: npm run compile
displayName: Compile
workingDirectory: $(Build.SourcesDirectory)/src/Bicep.MSBuild.E2eTests
- script: npm run lint
displayName: Run lint
workingDirectory: $(Build.SourcesDirectory)/src/Bicep.MSBuild.E2eTests
# downloads to $(Pipeline.Workspace)/{artifact}
- download: current
displayName: Download MSBuild package
artifact: drop_build_bicep_windows
- task: CopyFiles@2
displayName: Copy MSBuild package
inputs:
sourceFolder: '$(Pipeline.Workspace)/drop_build_bicep_windows/'
contents: '*.nupkg'
targetFolder: '$(Build.SourcesDirectory)/src/Bicep.MSBuild.E2eTests/examples/local-packages'
- download: current
displayName: Download CLI package
artifact: drop_build_packages_${{ parameters.artifactSuffix }}
- task: CopyFiles@2
displayName: Copy CLI package output
inputs:
sourceFolder: '$(Pipeline.Workspace)/drop_build_packages_${{ parameters.artifactSuffix }}'
contents: '*.nupkg'
targetFolder: '$(Build.SourcesDirectory)/src/Bicep.MSBuild.E2eTests/examples/local-packages'
- script: npm run test
displayName: Run E2E tests
env:
RuntimeSuffix: ${{ parameters.rid }}
workingDirectory: $(Build.SourcesDirectory)/src/Bicep.MSBuild.E2eTests