forked from getsentry/sentry-dart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/ICPFLUTTER-1065' into 8.3.0-mod
- Loading branch information
Showing
333 changed files
with
21,058 additions
and
6,727 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 @@ | ||
name: Dart tests | ||
description: Run Dart Tests and collect coverage | ||
inputs: | ||
directory: | ||
description: The directory to run tests in | ||
required: false | ||
default: '' | ||
coverage: | ||
description: Codecov name | ||
required: false | ||
default: '' | ||
min-coverage: | ||
description: Minimum coverage percentage | ||
required: false | ||
default: '0' | ||
token: | ||
description: Codecov token | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Format coverage info | ||
if: ${{ inputs.coverage != '' }} | ||
run: dart pub run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib | ||
shell: bash | ||
working-directory: ${{ inputs.directory }} | ||
|
||
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # pin@v3 | ||
if: ${{ inputs.coverage != '' }} | ||
with: | ||
name: ${{ inputs.coverage != '' }} | ||
files: ./${{ inputs.directory }}/coverage/lcov.info | ||
token: ${{ inputs.token }} | ||
|
||
- uses: VeryGoodOpenSource/very_good_coverage@c953fca3e24a915e111cc6f55f03f756dcb3964c # pin@v3.0.0 | ||
if: ${{ inputs.coverage != '' }} | ||
with: | ||
path: './${{ inputs.directory }}/coverage/lcov.info' | ||
min_coverage: ${{ inputs.min-coverage }} |
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,40 @@ | ||
name: Dart tests | ||
description: Run Dart tests | ||
inputs: | ||
directory: | ||
description: The directory to run tests in | ||
required: false | ||
default: '' | ||
web: | ||
description: Whether to run tests for web | ||
required: false | ||
default: 'true' | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- uses: dart-lang/setup-dart@f0ead981b4d9a35b37f30d36160575d60931ec30 # pin@v1 | ||
with: | ||
sdk: ${{ matrix.sdk }} | ||
|
||
- run: dart pub get | ||
shell: bash | ||
working-directory: ${{ inputs.directory }} | ||
|
||
- name: Test VM | ||
run: dart test -p vm ${{ (runner.os == 'Linux' && matrix.sdk == 'stable' && '--coverage=coverage') || '' }} --test-randomize-ordering-seed=random --chain-stack-traces | ||
shell: bash | ||
working-directory: ${{ inputs.directory }} | ||
|
||
- name: Test dart2js | ||
if: ${{ inputs.web == 'true' }} | ||
run: dart test -p chrome --test-randomize-ordering-seed=random --chain-stack-traces | ||
shell: bash | ||
working-directory: ${{ inputs.directory }} | ||
|
||
- name: Test dart2wasm | ||
if: ${{ inputs.web == 'true' && (matrix.sdk == 'stable' || matrix.sdk == 'beta') && runner.os != 'Windows' }} | ||
run: dart test -p chrome --compiler dart2wasm --test-randomize-ordering-seed=random --chain-stack-traces | ||
shell: bash | ||
working-directory: ${{ inputs.directory }} |
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
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
Oops, something went wrong.