From 7f0c786307a7c5280600ddd8d5f6bbe6db63f2ab Mon Sep 17 00:00:00 2001 From: roshaanbajwa Date: Thu, 6 Jun 2024 15:37:32 +0100 Subject: [PATCH 1/2] Add azure pipeline for connection to review environments --- azure-pipelines.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..b8341bb59 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,39 @@ +trigger: + branches: + include: + - review-* + paths: + exclude: + - CHANGELOG.md + - README.md + - CODE_OF_CONDUCT.md + - CONTRIBUTING.md + +pool: + vmImage: 'ubuntu-latest' + +steps: + + - script: npm ci + displayName: 'Install' + + - script: npm run build + displayName: 'Build' + + - script: npm run lint + displayName: 'Lint' + + - script: npm run test + displayName: 'Test' + + - script: npm run backstop:ci + displayName: 'Backstop' + + - task: ArchiveFiles@2 + inputs: + rootFolderOrFile: '$(System.DefaultWorkingDirectory)' + includeRootFolder: false + displayName: 'Create file archive to publish' + + - task: PublishBuildArtifacts@1 + displayName: 'Publish files to Azure Pipelines' \ No newline at end of file From e6db96c1e95828e3f644f070cef1c0ad1ff4e884 Mon Sep 17 00:00:00 2001 From: roshaanbajwa Date: Thu, 6 Jun 2024 15:42:05 +0100 Subject: [PATCH 2/2] linting --- azure-pipelines.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b8341bb59..d416b4cea 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,19 +1,18 @@ trigger: branches: include: - - review-* + - review-* paths: exclude: - - CHANGELOG.md - - README.md - - CODE_OF_CONDUCT.md - - CONTRIBUTING.md + - CHANGELOG.md + - README.md + - CODE_OF_CONDUCT.md + - CONTRIBUTING.md pool: vmImage: 'ubuntu-latest' steps: - - script: npm ci displayName: 'Install' @@ -36,4 +35,4 @@ steps: displayName: 'Create file archive to publish' - task: PublishBuildArtifacts@1 - displayName: 'Publish files to Azure Pipelines' \ No newline at end of file + displayName: 'Publish files to Azure Pipelines'