blob: 00b7f6fdc73fdb7400eb5bb73137fb9d6613e978 (
plain)
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
|
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
jobs:
- job: macOS
pool:
vmImage: 'macOS-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '>=16.x'
- script: npm install
displayName: "Install Dependencies"
- script: npm run gulp clean
displayName: "Clean Workspace"
- script: npm run lint
displayName: "Running ESLint"
- script: npm run test
displayName: "Running Unit Tests"
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/TEST-*.xml'
- script: npm run gulp "app:package-macos"
displayName: "Package macOS Artifacts"
- script: npm run gulp "app:zip-macos"
displayName: "Package and Zip macOS Artifacts"
- task: CopyFiles@2
inputs:
Contents: 'build/*.zip'
TargetFolder: '$(build.artifactstagingdirectory)/app'
OverWrite: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/app'
artifactName: "Zip - macOS Application"
|