Skip to content

Commit 3711e2e

Browse files
authored
[tests] upload test report artifacts
1 parent 53920c1 commit 3711e2e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/presubmit.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,27 @@ jobs:
119119
./gradlew verifyPluginSignature
120120
./gradlew verifyPluginStructure
121121
working-directory: third_party
122+
# Job 5: Upload Test Report
123+
upload-report:
124+
needs: dart-analysis-server-tests
125+
strategy:
126+
matrix:
127+
# https://github.com/dart-lang/setup-dart
128+
# Define the Dart SDK versions to test against.
129+
# 'stable' and 'beta' will fetch the latest respective versions.
130+
# You can also specify exact versions like '3.0.0', '3.8.1'.
131+
# dart-version: ['3.0.0', 'stable', 'beta', 'dev' ]
132+
133+
# TODO(https://github.com/flutter/dart-intellij-third-party/issues/47)
134+
# Fix tests to run over additional operating systems as well as Dart SDK versions:
135+
dart-version: ['stable']
136+
os: [ macos-latest ]
137+
runs-on: ${{ matrix.os }} # Use the OS from the matrix
138+
steps:
139+
- name: Upload Test Report Artifact
140+
uses: actions/upload-artifact@v4
141+
if: always() # IMPORTANT: Upload reports even if the tests fail
142+
with:
143+
name: gradle-test-report-${{ matrix.dart-version }}-${{ matrix.os }}
144+
path: third_party/build/reports/tests/test
145+
retention-days: 7

0 commit comments

Comments
 (0)