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 <palmpasuthorn@gmail.com>
This commit is contained in:
EvadeMaster 2023-03-30 00:51:08 +07:00 committed by GitHub
parent fa4063220f
commit 7839252934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,8 +3,14 @@ name: Analyze Code
on: on:
push: push:
branches: [ "main", "dev" ] branches: [ "main", "dev" ]
paths:
- "**.dart"
- ".github/workflows/analyze.yml"
pull_request: pull_request:
branches: [ "main", "dev" ] branches: [ "main", "dev" ]
paths:
- "**.dart"
- ".github/workflows/analyze.yml"
jobs: jobs:
build: build: