From 059d658e445b709fa4669b881c684839cc3bfe57 Mon Sep 17 00:00:00 2001 From: EvadeMaster <93124920+EvadeMaster@users.noreply.github.com> Date: Wed, 29 Mar 2023 17:26:44 +0700 Subject: [PATCH 1/3] ci(analyser): only run on lib/`.dart` changes --- .github/workflows/analyze.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 0494388553..6217744cd7 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -3,8 +3,12 @@ name: Analyze Code on: push: branches: [ "main", "dev" ] + paths: + - "lib/**.dart" pull_request: branches: [ "main", "dev" ] + paths: + - "lib/**.dart" jobs: build: From cefa98404452de7c4d31c6819b35360034e0ac0b Mon Sep 17 00:00:00 2001 From: EvadeMaster <93124920+EvadeMaster@users.noreply.github.com> Date: Wed, 29 Mar 2023 17:32:02 +0700 Subject: [PATCH 2/3] ci(analyser): runs on workflow changes --- .github/workflows/analyze.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 6217744cd7..d4ffd7ff14 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -5,10 +5,12 @@ on: branches: [ "main", "dev" ] paths: - "lib/**.dart" + - ".github/workflows/analyze.yml" pull_request: branches: [ "main", "dev" ] paths: - "lib/**.dart" + - ".github/workflows/analyze.yml" jobs: build: From 1748b10615edf14bbd408cb5551d1cfc21498acd Mon Sep 17 00:00:00 2001 From: Palm Date: Thu, 30 Mar 2023 00:40:43 +0700 Subject: [PATCH 3/3] ci(analyze): run on all dart file changes --- .github/workflows/analyze.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index d4ffd7ff14..aba695e62c 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -4,12 +4,12 @@ on: push: branches: [ "main", "dev" ] paths: - - "lib/**.dart" + - "**.dart" - ".github/workflows/analyze.yml" pull_request: branches: [ "main", "dev" ] paths: - - "lib/**.dart" + - "**.dart" - ".github/workflows/analyze.yml" jobs: @@ -29,4 +29,4 @@ jobs: - name: Analyze code uses: ValentinVignal/action-dart-analyze@v0.15 with: - fail-on: warning \ No newline at end of file + fail-on: warning