From 5d53264fa1b9b33e04e1ce3f45cadeaec4f96900 Mon Sep 17 00:00:00 2001 From: Pratik Bhattacharya Date: Fri, 2 Apr 2021 13:25:35 +0530 Subject: [PATCH] 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 --- .gitignore | 7 ++- azure-gated-build.yml | 72 +++++++++++++++++++++++++++++ sample/counterApp/package-lock.json | 6 +-- sample/counterApp/package.json | 2 +- sample/shell/package.json | 2 +- sample/todoApp/package.json | 2 +- 6 files changed, 84 insertions(+), 7 deletions(-) create mode 100644 azure-gated-build.yml diff --git a/.gitignore b/.gitignore index 603bbf5..14716b7 100644 --- a/.gitignore +++ b/.gitignore @@ -354,4 +354,9 @@ MigrationBackup/ /lib/**/**.* # Code Coverage -/coverage/**/**.* \ No newline at end of file +/coverage/**/**.* + +# Ignoring dist folders +/sample/counterApp/dist/**.* +/sample/todoApp/dist/**/**.* +/sample/shell/dist/**/**.* \ No newline at end of file diff --git a/azure-gated-build.yml b/azure-gated-build.yml new file mode 100644 index 0000000..a08b874 --- /dev/null +++ b/azure-gated-build.yml @@ -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' + + + diff --git a/sample/counterApp/package-lock.json b/sample/counterApp/package-lock.json index ec85706..3c01fdd 100644 --- a/sample/counterApp/package-lock.json +++ b/sample/counterApp/package-lock.json @@ -5096,9 +5096,9 @@ "dev": true }, "redux-micro-frontend": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/redux-micro-frontend/-/redux-micro-frontend-1.1.0.tgz", - "integrity": "sha512-3p7JGP4hc7gbM/Ns/lR20ygSaqM6o4zwQF48X3D2ZseNreWvcX5lZv5JPW2kvR+08eS5F6oxwwLRK0tQ4zVpXQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/redux-micro-frontend/-/redux-micro-frontend-1.1.1.tgz", + "integrity": "sha512-1yNUf45A/CT56ZQWYAFkMaYlTySsEWmWCpW9sHroAZGaWrvxXtD7L4Z/ANP1r386EjcsvucGKUt4dJ+JMW4IbQ==", "dev": true, "requires": { "flatted": "^2.0.2", diff --git a/sample/counterApp/package.json b/sample/counterApp/package.json index 016fccb..b320cb3 100644 --- a/sample/counterApp/package.json +++ b/sample/counterApp/package.json @@ -45,7 +45,7 @@ "html-webpack-plugin": "^4.5.0", "react": "^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", "webpack": "^5.1.3", "webpack-cli": "^4.1.0", diff --git a/sample/shell/package.json b/sample/shell/package.json index 720d588..231a0df 100644 --- a/sample/shell/package.json +++ b/sample/shell/package.json @@ -34,7 +34,7 @@ "dependencies": { "react": "^16.14.0", "react-dom": "^16.14.0", - "redux-micro-frontend": "^1.1.0" + "redux-micro-frontend": "^1.1.1" }, "devDependencies": { "clean-webpack-plugin": "^3.0.0", diff --git a/sample/todoApp/package.json b/sample/todoApp/package.json index 83700a4..83b76b7 100644 --- a/sample/todoApp/package.json +++ b/sample/todoApp/package.json @@ -45,7 +45,7 @@ "html-webpack-plugin": "^4.5.0", "react": "^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", "webpack": "^5.1.3", "webpack-cli": "^4.1.0",