Skip to content

Commit dc3bca6

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

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

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

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
# allows for this workflow to be run manually from the Actions tab
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: dart-lang/[email protected]
20+
- name: get dependencies
21+
run: dart pub get
22+
- name: run tests
23+
run: dart test
24+
- name: run analyzer
25+
run: dart analyze

0 commit comments

Comments
 (0)