From f49121bf76b03be874e2eb5c969e2787bc153797 Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Thu, 23 Mar 2023 11:22:17 +0100 Subject: [PATCH] ci(ado): add nx affected pipeline for testing --- azure-pipelines.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 062bd8c6fec222..3d54aea4b42801 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -82,6 +82,22 @@ jobs: - template: .devops/templates/cleanup.yml + - job: NX_Affected + workspace: + clean: all + steps: + - template: .devops/templates/tools.yml + + - script: | + yarn install + displayName: yarn + + - script: | + yarn nx affected --targets=build,test,lint,type-check --parallel=8 --base=$(targetBranch) + displayName: build, test, lint, type-check + + - template: .devops/templates/cleanup.yml + - job: Nx_Tests workspace: clean: all