-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from edufolly/dev
OS matrix for tests.
- Loading branch information
Showing
14 changed files
with
362 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Dart Code Metrics | ||
|
||
on: [push] | ||
|
||
jobs: | ||
check: | ||
name: dart-code-metrics-action | ||
runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: write | ||
steps: | ||
- name: Code Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Dart Code Metrics | ||
uses: dart-code-checker/dart-code-metrics-action@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
fatal_warnings: true | ||
fatal_performance: true | ||
fatal_style: true | ||
check_unused_files: true | ||
pull_request_comment: true |
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 |
---|---|---|
|
@@ -44,39 +44,51 @@ jobs: | |
channel: 'stable' | ||
cache: true | ||
|
||
# - name: Install lcov | ||
# env: | ||
# DEBIAN_FRONTEND: noninteractive | ||
# run: | | ||
# sudo apt-get update -y | ||
# sudo apt install -y lcov | ||
- name: Install lcov | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt install -y lcov | ||
- name: Dart Pub Get | ||
timeout-minutes: 5 | ||
timeout-minutes: 3 | ||
run: dart pub get | ||
|
||
- name: Dart Publish Dry Run | ||
run: dart pub publish --dry-run | ||
|
||
- name: Dart Analyze | ||
timeout-minutes: 5 | ||
run: dart analyze --fatal-infos | ||
|
||
- name: Dart Test | ||
run: dart test --coverage=coverage | ||
|
||
# - name: Creating Test Coverage HTML | ||
# run: | | ||
# genhtml coverage/lcov.info \ | ||
# --output-directory coverage/html \ | ||
# --title "curt" \ | ||
# --show-details | ||
- name: Creating package filter. | ||
run: dart run helpers/package.dart | ||
|
||
# - name: Publishing to GitHub Pages | ||
# uses: peaceiris/actions-gh-pages@v3 | ||
# with: | ||
# publish_dir: ./coverage/html | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Creating lcov.info | ||
run: | | ||
dart run coverage:format_coverage \ | ||
--packages=coverage/package.json \ | ||
--lcov \ | ||
-i coverage \ | ||
-o coverage/lcov.info | ||
- name: Creating Test Coverage HTML | ||
run: | | ||
genhtml coverage/lcov.info \ | ||
--output-directory coverage/html \ | ||
--title "curt" \ | ||
--show-details | ||
- name: Publish Dart package | ||
uses: k-paxian/dart-package-publisher@master | ||
with: | ||
accessToken: ${{ secrets.OAUTH_ACCESS_TOKEN }} | ||
refreshToken: ${{ secrets.OAUTH_REFRESH_TOKEN }} | ||
skipTests: true | ||
format: true | ||
|
||
- name: Publishing to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
publish_dir: ./coverage/html | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Creating a GitHub Tag | ||
uses: mathieudutour/[email protected] | ||
|
@@ -89,4 +101,3 @@ jobs: | |
with: | ||
tag: v${{ needs.boot.outputs.version }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
# allowUpdates: true |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.