From 6aeabfde4f7dd4f1907c76140e6b59bec86b6429 Mon Sep 17 00:00:00 2001 From: praveenkuttappan Date: Thu, 3 Mar 2022 11:35:16 -0500 Subject: [PATCH 1/2] Enable trigger for es lint pipeline --- common/tools/eslint-plugin-azure-sdk/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/common/tools/eslint-plugin-azure-sdk/ci.yml b/common/tools/eslint-plugin-azure-sdk/ci.yml index 2253227cb6fb..270e5c68238a 100644 --- a/common/tools/eslint-plugin-azure-sdk/ci.yml +++ b/common/tools/eslint-plugin-azure-sdk/ci.yml @@ -1,11 +1,23 @@ +trigger: + branches: + include: + - main + - feature/* + - hotfix/* + paths: + include: + - common/tools/eslint-plugin-azure-sdk/ + pr: branches: include: - main + - feature/* + - hotfix/* paths: include: - - common/tools/eslint-plugin-azure-sdk + - common/tools/eslint-plugin-azure-sdk/ jobs: - job: 'RunESLint' From 54ad0bbde216f31725e3b155c46d72b81f8f88f7 Mon Sep 17 00:00:00 2001 From: praveenkuttappan Date: Thu, 3 Mar 2022 11:57:23 -0500 Subject: [PATCH 2/2] Add verbosity --- eng/pipelines/templates/steps/run-eslint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/templates/steps/run-eslint.yml b/eng/pipelines/templates/steps/run-eslint.yml index 0c37bdc28d6f..d64fdf994913 100644 --- a/eng/pipelines/templates/steps/run-eslint.yml +++ b/eng/pipelines/templates/steps/run-eslint.yml @@ -8,9 +8,9 @@ steps: - pwsh: | node common/scripts/install-run-rush.js build -t @azure/eslint-plugin-azure-sdk - node eng/tools/rush-runner.js lint "${{parameters.ServiceDirectory}}" + node eng/tools/rush-runner.js lint "${{parameters.ServiceDirectory}}" -p max displayName: "Build ESLint Plugin and Lint Libraries" - pwsh: | - node common/scripts/install-run-rush.js test -t @azure/eslint-plugin-azure-sdk + node common/scripts/install-run-rush.js test -t @azure/eslint-plugin-azure-sdk --verbose displayName: "Run ESLint Plugin Unit Tests"