From 78392529344df3895d28e0c011d3de4d0fce4187 Mon Sep 17 00:00:00 2001 From: EvadeMaster <93124920+EvadeMaster@users.noreply.github.com> Date: Thu, 30 Mar 2023 00:51:08 +0700 Subject: [PATCH] ci(analyze): only run when necessary (#766) * ci(analyser): only run on lib/`.dart` changes * ci(analyser): runs on workflow changes * ci(analyze): run on all dart file changes --------- Co-authored-by: Palm --- .github/workflows/analyze.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 04943885..aba695e6 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -3,8 +3,14 @@ name: Analyze Code on: push: branches: [ "main", "dev" ] + paths: + - "**.dart" + - ".github/workflows/analyze.yml" pull_request: branches: [ "main", "dev" ] + paths: + - "**.dart" + - ".github/workflows/analyze.yml" jobs: build: @@ -23,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