Skip to content

Commit 5d53264

Browse files
patrickCodePratik Bhattacharya
andauthored
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>
1 parent 7e02138 commit 5d53264

File tree

6 files changed

+84
-7
lines changed

6 files changed

+84
-7
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,4 +354,9 @@ MigrationBackup/
354354
/lib/**/**.*
355355

356356
# Code Coverage
357-
/coverage/**/**.*
357+
/coverage/**/**.*
358+
359+
# Ignoring dist folders
360+
/sample/counterApp/dist/**.*
361+
/sample/todoApp/dist/**/**.*
362+
/sample/shell/dist/**/**.*

azure-gated-build.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
trigger:
2+
- main
3+
4+
jobs:
5+
- job: BuildLibrary
6+
displayName: Build Library
7+
pool:
8+
vmImage: ubuntu-latest
9+
steps:
10+
- task: NodeTool@0
11+
inputs:
12+
versionSpec: '12.x'
13+
checkLatest: true
14+
- task: Npm@1
15+
displayName: Install Dependencies
16+
inputs:
17+
command: 'install'
18+
- task: Npm@1
19+
displayName: Build Library
20+
inputs:
21+
command: 'custom'
22+
customCommand: 'run build'
23+
- task: Npm@1
24+
displayName: Test
25+
inputs:
26+
command: 'custom'
27+
customCommand: 'run test'
28+
- job: BuildSample
29+
displayName: Build Sample Projects
30+
pool:
31+
vmImage: ubuntu-latest
32+
steps:
33+
- task: NodeTool@0
34+
inputs:
35+
versionSpec: '12.x'
36+
checkLatest: true
37+
- task: Npm@1
38+
displayName: Install Counter App Dependencies
39+
inputs:
40+
command: 'install'
41+
workingDir: 'sample/counterApp'
42+
- task: Npm@1
43+
displayName: Build Counter App
44+
inputs:
45+
command: 'custom'
46+
customCommand: 'run build'
47+
workingDir: 'sample/counterApp'
48+
- task: Npm@1
49+
displayName: Install Todo App Dependencies
50+
inputs:
51+
command: 'install'
52+
workingDir: 'sample/todoApp'
53+
- task: Npm@1
54+
displayName: Build Todo App
55+
inputs:
56+
command: 'custom'
57+
customCommand: 'run build'
58+
workingDir: 'sample/todoApp'
59+
- task: Npm@1
60+
displayName: Install Shell Dependencies
61+
inputs:
62+
command: 'install'
63+
workingDir: 'sample/shell'
64+
- task: Npm@1
65+
displayName: Build Shell
66+
inputs:
67+
command: 'custom'
68+
customCommand: 'run build'
69+
workingDir: 'sample/shell'
70+
71+
72+

sample/counterApp/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sample/counterApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"html-webpack-plugin": "^4.5.0",
4646
"react": "^16.14.0",
4747
"react-dom": "^16.14.0",
48-
"redux-micro-frontend": "^1.1.0",
48+
"redux-micro-frontend": "^1.1.1",
4949
"style-loader": "^2.0.0",
5050
"webpack": "^5.1.3",
5151
"webpack-cli": "^4.1.0",

sample/shell/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"dependencies": {
3535
"react": "^16.14.0",
3636
"react-dom": "^16.14.0",
37-
"redux-micro-frontend": "^1.1.0"
37+
"redux-micro-frontend": "^1.1.1"
3838
},
3939
"devDependencies": {
4040
"clean-webpack-plugin": "^3.0.0",

sample/todoApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"html-webpack-plugin": "^4.5.0",
4646
"react": "^16.14.0",
4747
"react-dom": "^16.14.0",
48-
"redux-micro-frontend": "^1.1.0",
48+
"redux-micro-frontend": "^1.1.1",
4949
"style-loader": "^2.0.0",
5050
"webpack": "^5.1.3",
5151
"webpack-cli": "^4.1.0",

0 commit comments

Comments
 (0)