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 all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci-open-pr.yml
@@ -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 test/all_tests.dart
- name: run analyzer
run: dart analyze