Skip to content

Commit

Permalink
ci: added workflow for auto running tests and analyzer for newly open…
Browse files Browse the repository at this point in the history
…ed prs to merge into master
  • Loading branch information
MarkOSullivan94 committed Jul 26, 2022
1 parent 7850064 commit dc3bca6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci-open-pr.yml
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

0 comments on commit dc3bca6

Please sign in to comment.