Skip to content

Commit 210cd79

Browse files
Fix Dart 3 analysis
1 parent d97e294 commit 210cd79

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,21 @@ on:
1111

1212
jobs:
1313
checks:
14+
runs-on: ubuntu-latest
1415
strategy:
1516
matrix:
1617
sdk: [ 2.19.6, stable ]
17-
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]
18-
with:
19-
additional-checks: |
20-
no_entrypoint_imports
21-
sdk: ${{ matrix.sdk }}
22-
format-check: ${{ matrix.sdk == '2.19.6' }}
18+
steps:
19+
- name: Delete Dart-2-only files when running on Dart 3
20+
if: ${{ matrix.sdk != '2.19.6' }}
21+
run: |
22+
./tool/delete_dart_2_only_files.sh
23+
- uses: Workiva/gha-dart-oss/.github/workflows/[email protected]
24+
with:
25+
additional-checks: |
26+
no_entrypoint_imports
27+
sdk: ${{ matrix.sdk }}
28+
format-check: ${{ matrix.sdk == '2.19.6' }}
2329

2430
# Run as a separate job outside the Dart SDK matrix below,
2531
# since we can only emit a single SBOM.
@@ -33,8 +39,8 @@ jobs:
3339
strategy:
3440
fail-fast: false
3541
matrix:
36-
react: [17, 18]
37-
sdk: [2.19.6, stable]
42+
react: [ 17, 18 ]
43+
sdk: [ 2.19.6, stable ]
3844
steps:
3945
- uses: actions/checkout@v2
4046
- id: setup-dart
@@ -51,6 +57,7 @@ jobs:
5157
if [[ "$DART_VERSION" =~ ^3 ]]; then
5258
./tool/delete_dart_2_only_files.sh
5359
fi
60+
5461
- name: Switch to React 17 Test HTML
5562
if: ${{ matrix.react == 17 }}
5663
run: |

0 commit comments

Comments
 (0)