Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added workflow for auto running tests and analyzer for newly opened prs to merge into master #387

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]
- name: get dependencies
run: dart pub get
- name: run tests
run: dart test
MarkOSullivan94 marked this conversation as resolved.
Show resolved Hide resolved
- name: run analyzer
run: dart analyze