-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
58 lines (47 loc) · 1.35 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
trigger:
- main
pool:
# name: jhair # O el nombre de tu pool de agentes
# demands:
# - agent.name -equals jhair
vmImage: 'ubuntu-latest'
steps:
- task: UseNode@1
inputs:
version: "18.x"
- script: |
Import-Module Microsoft.PowerShell.Security
npm install
displayName: "Instalar dependencias"
- script: |
npm run lint
displayName: "Ejecutar ESLint"
- script: |
npm test
displayName: "Ejecutar Pruebas Unitarias"
- script: |
snyk auth
displayName: "Ejecutar Snyk"
- script: |
npm run snyk
displayName: "Ejecutar Snyk"
# - task: ArchiveFiles@2
# inputs:
# rootFolderOrFile: "$(Build.SourcesDirectory)"
# includeRootFolder: false
# archiveType: "zip"
# archiveFile: "$(Build.ArtifactStagingDirectory)/app.zip"
# replaceExistingArchive: true
# - task: PublishBuildArtifacts@1
# inputs:
# pathToPublish: "$(Build.ArtifactStagingDirectory)"
# artifactName: "drop"
- task: AzureWebApp@1
inputs:
azureSubscription: 'Azure for Students(004ab24a-ab3b-4463-90c8-e660a87984c1)'
appType: 'webAppLinux'
appName: 'dev-op-test'
# package: '$(System.DefaultWorkingDirectory)/**/*.zip'
package: '$(System.DefaultWorkingDirectory)/myapp.zip'
runtimeStack: 'NODE|18-lts'
startUpCommand: 'npm start'