feat (azure-pipeline): added azure pipeline for running gated build in Azure (#21)
* feat(azure-pipeline): Set up CI with Azure Pipelines [skip ci] * feat (azure-pipeline): added steps for sample project * fix (azure-pipeline): fixed redux-micro-frontend version * fix (azure-pipeline): fixed directory name in sample project build job Co-authored-by: Pratik Bhattacharya <pratikb@microsoft.com>
This commit is contained in:
Родитель
7e02138b26
Коммит
5d53264fa1
|
@ -355,3 +355,8 @@ MigrationBackup/
|
||||||
|
|
||||||
# Code Coverage
|
# Code Coverage
|
||||||
/coverage/**/**.*
|
/coverage/**/**.*
|
||||||
|
|
||||||
|
# Ignoring dist folders
|
||||||
|
/sample/counterApp/dist/**.*
|
||||||
|
/sample/todoApp/dist/**/**.*
|
||||||
|
/sample/shell/dist/**/**.*
|
|
@ -0,0 +1,72 @@
|
||||||
|
trigger:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- job: BuildLibrary
|
||||||
|
displayName: Build Library
|
||||||
|
pool:
|
||||||
|
vmImage: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: '12.x'
|
||||||
|
checkLatest: true
|
||||||
|
- task: Npm@1
|
||||||
|
displayName: Install Dependencies
|
||||||
|
inputs:
|
||||||
|
command: 'install'
|
||||||
|
- task: Npm@1
|
||||||
|
displayName: Build Library
|
||||||
|
inputs:
|
||||||
|
command: 'custom'
|
||||||
|
customCommand: 'run build'
|
||||||
|
- task: Npm@1
|
||||||
|
displayName: Test
|
||||||
|
inputs:
|
||||||
|
command: 'custom'
|
||||||
|
customCommand: 'run test'
|
||||||
|
- job: BuildSample
|
||||||
|
displayName: Build Sample Projects
|
||||||
|
pool:
|
||||||
|
vmImage: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- task: NodeTool@0
|
||||||
|
inputs:
|
||||||
|
versionSpec: '12.x'
|
||||||
|
checkLatest: true
|
||||||
|
- task: Npm@1
|
||||||
|
displayName: Install Counter App Dependencies
|
||||||
|
inputs:
|
||||||
|
command: 'install'
|
||||||
|
workingDir: 'sample/counterApp'
|
||||||
|
- task: Npm@1
|
||||||
|
displayName: Build Counter App
|
||||||
|
inputs:
|
||||||
|
command: 'custom'
|
||||||
|
customCommand: 'run build'
|
||||||
|
workingDir: 'sample/counterApp'
|
||||||
|
- task: Npm@1
|
||||||
|
displayName: Install Todo App Dependencies
|
||||||
|
inputs:
|
||||||
|
command: 'install'
|
||||||
|
workingDir: 'sample/todoApp'
|
||||||
|
- task: Npm@1
|
||||||
|
displayName: Build Todo App
|
||||||
|
inputs:
|
||||||
|
command: 'custom'
|
||||||
|
customCommand: 'run build'
|
||||||
|
workingDir: 'sample/todoApp'
|
||||||
|
- task: Npm@1
|
||||||
|
displayName: Install Shell Dependencies
|
||||||
|
inputs:
|
||||||
|
command: 'install'
|
||||||
|
workingDir: 'sample/shell'
|
||||||
|
- task: Npm@1
|
||||||
|
displayName: Build Shell
|
||||||
|
inputs:
|
||||||
|
command: 'custom'
|
||||||
|
customCommand: 'run build'
|
||||||
|
workingDir: 'sample/shell'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5096,9 +5096,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"redux-micro-frontend": {
|
"redux-micro-frontend": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/redux-micro-frontend/-/redux-micro-frontend-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/redux-micro-frontend/-/redux-micro-frontend-1.1.1.tgz",
|
||||||
"integrity": "sha512-3p7JGP4hc7gbM/Ns/lR20ygSaqM6o4zwQF48X3D2ZseNreWvcX5lZv5JPW2kvR+08eS5F6oxwwLRK0tQ4zVpXQ==",
|
"integrity": "sha512-1yNUf45A/CT56ZQWYAFkMaYlTySsEWmWCpW9sHroAZGaWrvxXtD7L4Z/ANP1r386EjcsvucGKUt4dJ+JMW4IbQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"flatted": "^2.0.2",
|
"flatted": "^2.0.2",
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
"html-webpack-plugin": "^4.5.0",
|
"html-webpack-plugin": "^4.5.0",
|
||||||
"react": "^16.14.0",
|
"react": "^16.14.0",
|
||||||
"react-dom": "^16.14.0",
|
"react-dom": "^16.14.0",
|
||||||
"redux-micro-frontend": "^1.1.0",
|
"redux-micro-frontend": "^1.1.1",
|
||||||
"style-loader": "^2.0.0",
|
"style-loader": "^2.0.0",
|
||||||
"webpack": "^5.1.3",
|
"webpack": "^5.1.3",
|
||||||
"webpack-cli": "^4.1.0",
|
"webpack-cli": "^4.1.0",
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "^16.14.0",
|
"react": "^16.14.0",
|
||||||
"react-dom": "^16.14.0",
|
"react-dom": "^16.14.0",
|
||||||
"redux-micro-frontend": "^1.1.0"
|
"redux-micro-frontend": "^1.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"clean-webpack-plugin": "^3.0.0",
|
"clean-webpack-plugin": "^3.0.0",
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
"html-webpack-plugin": "^4.5.0",
|
"html-webpack-plugin": "^4.5.0",
|
||||||
"react": "^16.14.0",
|
"react": "^16.14.0",
|
||||||
"react-dom": "^16.14.0",
|
"react-dom": "^16.14.0",
|
||||||
"redux-micro-frontend": "^1.1.0",
|
"redux-micro-frontend": "^1.1.1",
|
||||||
"style-loader": "^2.0.0",
|
"style-loader": "^2.0.0",
|
||||||
"webpack": "^5.1.3",
|
"webpack": "^5.1.3",
|
||||||
"webpack-cli": "^4.1.0",
|
"webpack-cli": "^4.1.0",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче