Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 169f6ae

Browse files
authored
chore: tune CI/CD (#885)
* chore: tune CI/CD
1 parent e52a798 commit 169f6ae

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/package_analyze.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,26 @@ jobs:
105105
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
106106
if: success()
107107
run: |
108-
dart test --coverage=coverage --concurrency=2
108+
dart test --coverage=coverage --reporter=github --file-reporter="json:reports/tests.json"
109109
dart run coverage:format_coverage --in coverage --out coverage/coverage.lcov --lcov --report-on=lib
110110
dart run tool/uncovered_coverage.dart
111-
dart test test/fake_test.dart --coverage=coverage --concurrency=2
111+
dart test test/fake_test.dart --coverage=coverage
112112
dart run coverage:format_coverage --in coverage --out coverage/coverage.lcov --lcov --report-on=lib
113113
bash <(curl -s https://codecov.io/bash) -f coverage/coverage.lcov
114114
115+
- name: Publish test results
116+
uses: dorny/test-reporter@v1.5.0
117+
if: success() || failure() # run this step even if previous step failed
118+
with:
119+
name: Tests result
120+
path: reports/tests.json
121+
reporter: dart-json
122+
list-suites: "all"
123+
list-tests: "all"
124+
max-annotations: 16
125+
fail-on-error: true
126+
token: ${{ secrets.GITHUB_TOKEN }}
127+
115128
check-minimal-supported-dart-compatibility:
116129
needs: analysis
117130
runs-on: ubuntu-latest
@@ -141,7 +154,7 @@ jobs:
141154
- name: Check compatibility
142155
run: |
143156
dart analyze --fatal-warnings --fatal-infos .
144-
dart test --concurrency=2
157+
dart test
145158
146159
check-beta-dart-compatibility:
147160
needs: analysis
@@ -162,7 +175,7 @@ jobs:
162175
- name: Check compatibility
163176
run: |
164177
dart analyze --fatal-warnings --fatal-infos .
165-
dart test --concurrency=2
178+
dart test --reporter=github
166179
167180
check-windows-compatibility:
168181
needs: analysis
@@ -183,4 +196,4 @@ jobs:
183196
- name: Check compatibility
184197
run: |
185198
dart analyze --fatal-warnings --fatal-infos .
186-
dart test --concurrency=2
199+
dart test --reporter=github

0 commit comments

Comments
 (0)