-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathazure-pipelines.yml
63 lines (51 loc) · 1.36 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
53
54
55
56
57
58
59
60
61
62
63
pr:
- main
- 'v*'
variables:
BuildLogDirectory: $(Build.BinariesDirectory)\x64\BuildLogs
pool:
name: rnw-pool-4
demands: ImageOverride -equals rnw-img-vs2022-node18
steps:
- checkout: self
clean: false
- task: NuGetToolInstaller@0
inputs:
versionSpec: '>=5.8.0'
- task: NodeTool@0
displayName: Installing Node
inputs:
versionSpec: '18.x'
- task: CmdLine@2
displayName: Installing Yarm
inputs:
script: npm install -g yarn
- task: NuGetCommand@2
displayName: NuGet restore
inputs:
command: restore
restoreSolution: windows/rngallery.sln
verbosityRestore: Detailed
- task: CmdLine@2
displayName: yarn
inputs:
script: yarn install --immutable
- task: CmdLine@2
displayName: Lint and Type Checks
inputs:
script: yarn tsc | yarn lint
- task: CmdLine@2
displayName: Build project (Debug)
timeoutInMinutes: 60
inputs:
script: npx react-native run-windows --arch x64 --no-deploy --logging --buildLogDirectory $BuildLogDirectory\Debug
- task: CmdLine@2
displayName: Snapshot Tests
inputs:
script: yarn test
- task: PublishBuildArtifacts@1
displayName: Upload build logs
condition: succeededOrFailed()
inputs:
pathtoPublish: $BuildLogDirectory
artifactName: 'Build logs - $(Agent.JobName)-$(System.JobAttempt)'