From f4a0176cbbd912049ce8377894c02bd88a1250e5 Mon Sep 17 00:00:00 2001 From: Talha <145199235+talha-abdul-karim@users.noreply.github.com> Date: Sun, 15 Oct 2023 23:33:48 +0500 Subject: [PATCH 1/2] 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 0000000000..676233afaf --- /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: +- master + +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 16ab7877c25639401defafc4941a88c387299277 Mon Sep 17 00:00:00 2001 From: Talha <145199235+talha-abdul-karim@users.noreply.github.com> Date: Sun, 15 Oct 2023 23:38:23 +0500 Subject: [PATCH 2/2] Adding npm test --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 676233afaf..c55454d856 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,4 +18,5 @@ steps: - script: | npm install npm run build - displayName: 'npm install and build' + npm test + displayName: 'npm install, build, and test'