-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update contributor, validation, and qa workflows
Signed-off-by: Jeremy Andrews <[email protected]>
- Loading branch information
Showing
3 changed files
with
207 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## This workflow runs on pull requests into the main qa. SDirect pushes to main are blocked. | ||
|
||
name: QA Workflow | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- qa | ||
|
||
jobs: | ||
qa-tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Dart | ||
uses: dart-lang/setup-dart@v1 | ||
with: | ||
dart-version: stable | ||
|
||
- name: Install Dependencies | ||
run: dart pub get | ||
|
||
- name: Run Static Analysis | ||
run: dart analyze | ||
|
||
- name: Run Unit Tests | ||
run: dart test --coverage=coverage | ||
|
||
- name: Format Coverage Report | ||
run: dart pub global activate coverage && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info | ||
|
||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: coverage/lcov.info | ||
|
||
- name: Check Code Quality | ||
run: dart pub global run dart_code_metrics:metrics analyze lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters