Skip to content

Commit

Permalink
ci(analyze): only run when necessary (#766)
Browse files Browse the repository at this point in the history
* 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 <palmpasuthorn@gmail.com>
  • Loading branch information
validcube and PalmDevs authored Mar 29, 2023
1 parent fa40632 commit 7839252
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -23,4 +29,4 @@ jobs:
- name: Analyze code
uses: ValentinVignal/action-dart-analyze@v0.15
with:
fail-on: warning
fail-on: warning

0 comments on commit 7839252

Please sign in to comment.