Skip to content

Commit 9d7337c

Browse files
ci: added workflow for auto running tests and analyzer for newly opened prs to merge into master
1 parent 7850064 commit 9d7337c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci-open-pr.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Runs all the unit tests and the analyzer for any PR opened to merge into master branch.
2+
#
3+
# This helps ensure we avoid breaking existing functionality and stick to the rules
4+
# defined in the analysis_options.yaml file
5+
name: run tests & analyzer for new pr
6+
7+
on:
8+
pull_request:
9+
branches: [ master ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: dart-lang/[email protected]
17+
- name: get dependencies
18+
run: dart pub get
19+
- name: run tests
20+
run: dart test
21+
- name: run analyzer
22+
run: dart analyze

0 commit comments

Comments
 (0)