From 2b64953110986afe43b92745954543e8f6383338 Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 11:59:18 -0600 Subject: [PATCH 01/14] Set up CI with Azure Pipelines [skip ci] --- npm.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 npm.yml diff --git a/npm.yml b/npm.yml new file mode 100644 index 00000000..01442dd6 --- /dev/null +++ b/npm.yml @@ -0,0 +1,21 @@ +# 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 + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run build + displayName: 'npm install and build' From 3d3c2d1f852ae73ef24f1a62419895bf985b613b Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:04:18 -0600 Subject: [PATCH 02/14] Update npm.yml for Azure Pipelines --- npm.yml | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/npm.yml b/npm.yml index 01442dd6..a9ecf0fa 100644 --- a/npm.yml +++ b/npm.yml @@ -1,21 +1,34 @@ -# 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 - trigger: - main pool: - vmImage: ubuntu-latest + vmImage: 'ubuntu-latest' steps: -- task: NodeTool@0 +- task: UseNode@1 inputs: - versionSpec: '10.x' + version: '16.x' displayName: 'Install Node.js' - script: | npm install + displayName: 'npm install' + +- script: | npm run build - displayName: 'npm install and build' + displayName: 'npm build' +- task: CopyFiles@2 + inputs: + sourceFolder: '$(Build.SourcesDirectory)' + contents: | + src/* + public/* + targetFolder: '$(Build.ArtifactStagingDirectory)' + displayName: 'Copy project files' + +- task: PublishPipelineArtifact@1 + inputs: + artifactName: e2e-server + targetPath: '$(Build.ArtifactStagingDirectory)' + publishLocation: 'pipeline' + displayName: 'Publish npm artifact' \ No newline at end of file From 71d1128dd715ad3ff43f7057643410e80a1c11e0 Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:03:15 -0600 Subject: [PATCH 03/14] Update npm.yml for Azure Pipelines --- npm.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/npm.yml b/npm.yml index a9ecf0fa..dafff011 100644 --- a/npm.yml +++ b/npm.yml @@ -31,4 +31,10 @@ steps: artifactName: e2e-server targetPath: '$(Build.ArtifactStagingDirectory)' publishLocation: 'pipeline' - displayName: 'Publish npm artifact' \ No newline at end of file + displayName: 'Publish npm artifact' + +- task: Npm@1 + inputs: + command: publish + publishRegistry: useFeed + publishFeed: SebsTest/holi \ No newline at end of file From a4cbbb4580419dfce9f1330b17c12b1fcb2ed05c Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:59:54 -0600 Subject: [PATCH 04/14] Update npm.yml for Azure Pipelines --- npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm.yml b/npm.yml index dafff011..551f42a3 100644 --- a/npm.yml +++ b/npm.yml @@ -37,4 +37,4 @@ steps: inputs: command: publish publishRegistry: useFeed - publishFeed: SebsTest/holi \ No newline at end of file + publishFeed: NPM test/holi \ No newline at end of file From 8340b7e465659b7228981644da692697e02f630a Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:00:24 -0600 Subject: [PATCH 05/14] Update npm.yml for Azure Pipelines --- npm.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/npm.yml b/npm.yml index 551f42a3..36ac7530 100644 --- a/npm.yml +++ b/npm.yml @@ -35,6 +35,9 @@ steps: - task: Npm@1 inputs: +- task: Npm@1 + inputs: + command: 'install' command: publish publishRegistry: useFeed publishFeed: NPM test/holi \ No newline at end of file From 28edebabff0ea547f6128ad784f5bd6d4833246a Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:01:46 -0600 Subject: [PATCH 06/14] Update npm.yml for Azure Pipelines --- npm.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/npm.yml b/npm.yml index 36ac7530..551f42a3 100644 --- a/npm.yml +++ b/npm.yml @@ -35,9 +35,6 @@ steps: - task: Npm@1 inputs: -- task: Npm@1 - inputs: - command: 'install' command: publish publishRegistry: useFeed publishFeed: NPM test/holi \ No newline at end of file From 3f63775f48b50dd3d6ca324b480c431e27fccdf2 Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:21:06 -0600 Subject: [PATCH 07/14] Update npm.yml for Azure Pipelines --- npm.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/npm.yml b/npm.yml index 551f42a3..8f9fcdcc 100644 --- a/npm.yml +++ b/npm.yml @@ -7,9 +7,10 @@ pool: steps: - task: UseNode@1 inputs: - version: '16.x' + version: '16.14.4' displayName: 'Install Node.js' + - script: | npm install displayName: 'npm install' From 859f1a22a0d4a4e99dcc868ba431e281145a9c22 Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:29:24 -0600 Subject: [PATCH 08/14] Update npm.yml for Azure Pipelines --- npm.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npm.yml b/npm.yml index 8f9fcdcc..43fe451b 100644 --- a/npm.yml +++ b/npm.yml @@ -1,5 +1,5 @@ trigger: -- main +- none pool: vmImage: 'ubuntu-latest' @@ -7,7 +7,7 @@ pool: steps: - task: UseNode@1 inputs: - version: '16.14.4' + version: '16.X' displayName: 'Install Node.js' From a504872e69c5b0a61776ee1b12a9f49dcd9faf46 Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:57:14 -0600 Subject: [PATCH 09/14] Update npm.yml for Azure Pipelines --- npm.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/npm.yml b/npm.yml index 43fe451b..1fa6662b 100644 --- a/npm.yml +++ b/npm.yml @@ -34,8 +34,10 @@ steps: publishLocation: 'pipeline' displayName: 'Publish npm artifact' + - task: Npm@1 inputs: - command: publish - publishRegistry: useFeed - publishFeed: NPM test/holi \ No newline at end of file + command: 'publish' + workingDir: '($Agent.BuildDirectory)' + publishRegistry: 'useFeed' + publishFeed: 'NPM test/holi' \ No newline at end of file From f65bd1993c07b791b027858b6c0b1b2da51e606d Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:00:53 -0600 Subject: [PATCH 10/14] Update npm.yml for Azure Pipelines --- npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm.yml b/npm.yml index 1fa6662b..8ab0fc8c 100644 --- a/npm.yml +++ b/npm.yml @@ -38,6 +38,6 @@ steps: - task: Npm@1 inputs: command: 'publish' - workingDir: '($Agent.BuildDirectory)' + workingDir: '$(Agent.BuildDirectory)' publishRegistry: 'useFeed' publishFeed: 'NPM test/holi' \ No newline at end of file From 6eca64dfd9dd16a14bde6eaf0935604596b84a94 Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:10:09 -0600 Subject: [PATCH 11/14] Update npm.yml for Azure Pipelines --- npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm.yml b/npm.yml index 8ab0fc8c..672478b3 100644 --- a/npm.yml +++ b/npm.yml @@ -38,6 +38,6 @@ steps: - task: Npm@1 inputs: command: 'publish' - workingDir: '$(Agent.BuildDirectory)' + workingDir: '$(Build.Repository.LocalPath)/package' publishRegistry: 'useFeed' publishFeed: 'NPM test/holi' \ No newline at end of file From 45869cd394f190f1017af14bb06446d7ae71e580 Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:12:14 -0600 Subject: [PATCH 12/14] Update npm.yml for Azure Pipelines --- npm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm.yml b/npm.yml index 672478b3..1fa12736 100644 --- a/npm.yml +++ b/npm.yml @@ -38,6 +38,6 @@ steps: - task: Npm@1 inputs: command: 'publish' - workingDir: '$(Build.Repository.LocalPath)/package' + workingDir: '$(Build.Repository.LocalPath)' publishRegistry: 'useFeed' publishFeed: 'NPM test/holi' \ No newline at end of file From eb8ce06ad0d2b72d0b47b6261adfe0a59fd83c24 Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Wed, 21 Feb 2024 11:47:25 -0600 Subject: [PATCH 13/14] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c9366e48..7b48b753 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "js-e2e-express-server", - "version": "1.0.0", + "version": "1.1.0", "description": "JavaScript server written with Express.js", "main": "index.js", "directories": { From 9fde919ddf0fcc7defa3f250073d4f302cc4ace6 Mon Sep 17 00:00:00 2001 From: ItsBlaZZe <115127110+ItsBlaZZe@users.noreply.github.com> Date: Thu, 17 Oct 2024 14:17:24 -0600 Subject: [PATCH 14/14] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..7a856f49 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,21 @@ +# 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 + +trigger: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '20.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run build + displayName: 'npm install and build'