From 1d3e44447a5a0e0149d897873eeb44f2389256a8 Mon Sep 17 00:00:00 2001 From: Mehmet Erim <34455572+mehmet-erim@users.noreply.github.com> Date: Thu, 11 Mar 2021 16:45:25 +0300 Subject: [PATCH 1/2] Optimize the angular action --- .github/workflows/angular.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml index dfca28338b..a4036f8474 100644 --- a/.github/workflows/angular.yml +++ b/.github/workflows/angular.yml @@ -2,8 +2,14 @@ name: 'Angular' on: pull_request: paths: - - 'npm/ng-packs/**' + - 'npm/ng-packs/**/*.ts' + - 'npm/ng-packs/**/*.html' + - 'npm/ng-packs/*.json' - '!npm/ng-packs/scripts/**' + - '!npm/ng-packs/packages/schematics/**' + branches: + - 'rel-*' + - 'dev' jobs: build-test-lint: runs-on: ubuntu-18.04 From 1985384c9800daf7d151e95ff5f04d0934e4f121 Mon Sep 17 00:00:00 2001 From: Mehmet Erim <34455572+mehmet-erim@users.noreply.github.com> Date: Thu, 11 Mar 2021 16:48:59 +0300 Subject: [PATCH 2/2] Update build-and-test.yml --- .github/workflows/build-and-test.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 6ba3ad7a6d..20f16b09d4 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -2,14 +2,18 @@ name: "build and test" on: pull_request: paths: - - "framework/**" - - "modules/**" - - "templates/**" - push: - paths: - - "framework/**" - - "modules/**" - - "templates/**" + - 'framework/**/*.cs' + - 'framework/**/*.cshtml' + - 'framework/**/*.csproj' + - 'framework/**/*.razor' + - 'modules/**/*.cs' + - 'modules/**/*.cshtml' + - 'modules/**/*.csproj' + - 'modules/**/*.razor' + - 'templates/**/*.cs' + - 'templates/**/*.cshtml' + - 'templates/**/*.csproj' + - 'templates/**/*.razor' jobs: build-test: runs-on: windows-latest