forked from fluttercommunity/flutter_launcher_icons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: added workflow for auto running tests and analyzer for newly open…
…ed prs to merge into master
- Loading branch information
1 parent
7850064
commit dc3bca6
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Runs all the unit tests and the analyzer for any PR opened to merge into master branch. | ||
# | ||
# This helps ensure we avoid breaking existing functionality and stick to the rules | ||
# defined in the analysis_options.yaml file | ||
name: run tests & analyzer for new pr | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# allows for this workflow to be run manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: dart-lang/setup-dart@v1.3 | ||
- name: get dependencies | ||
run: dart pub get | ||
- name: run tests | ||
run: dart test | ||
- name: run analyzer | ||
run: dart analyze |