This repository has been archived by the owner on Aug 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazure-pipelines.yml
79 lines (63 loc) · 2 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
jobs:
- job: frontend
displayName: Build frontend
pool:
vmImage: ubuntu-20.04
steps:
- task: UseNode@1
displayName: Install Node 18
inputs:
version: 18.14.0
- script: yarn --immutable --immutable-cache
displayName: Install dependencies
- script: yarn lint-ci
displayName: Lint code
- script: yarn typecheck
displayName: Check types
- script: yarn test-ci
displayName: Run tests
# - task: PublishCodeCoverageResults@2
# displayName: Publish test results
# continueOnError: true
# inputs:
# testResultsFiles: junit.xml
- task: PublishCodeCoverageResults@1
displayName: Publish test coverage
continueOnError: true
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: coverage/cobertura-coverage.xml
- script: yarn build
displayName: Build app bundles
- task: CopyFiles@2
displayName: Copy build output to staging directory
inputs:
contents: wwwroot/**/*
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishPipelineArtifact@1
displayName: Publish build artifacts
inputs:
targetPath: $(Build.ArtifactStagingDirectory)
artifact: frontend
- job: backend
displayName: Build backend
pool:
vmImage: windows-2019
steps:
- task: UseDotNet@2
displayName: Install .NET 6 SDK
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: DotNetCoreCLI@2
displayName: Package artifacts
inputs:
command: publish
publishWebProjects: true
arguments: --configuration Release --output $(Build.ArtifactStagingDirectory)
zipAfterPublish: false
- task: PublishPipelineArtifact@1
displayName: Publish build artifacts
inputs:
targetPath: $(Build.ArtifactStagingDirectory)
artifact: backend