From 61330741403051165b7899b320ae1e7eb091d84b Mon Sep 17 00:00:00 2001 From: Xinxing Liu Date: Mon, 30 Nov 2020 15:16:42 -0800 Subject: [PATCH] Set up new CI with Azure Pipelines (#796) Add a new PR validation pipeline. --- azure-pipelines-pr.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 azure-pipelines-pr.yml diff --git a/azure-pipelines-pr.yml b/azure-pipelines-pr.yml new file mode 100644 index 00000000..86522770 --- /dev/null +++ b/azure-pipelines-pr.yml @@ -0,0 +1,32 @@ +# Node.js with React +# Build a Node.js project that uses React. +# 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: '12.x' + displayName: 'Install Node.js' + +- script: | + yarn install + yarn tslint + if [ $? -ne 0 ]; then + exit 1 + fi + yarn compile + if [ $? -ne 0 ]; then + exit 1 + fi + yarn build + if [ $? -ne 0 ]; then + exit 1 + fi + displayName: 'yarn install and build' \ No newline at end of file