Skip to content

Commit 2afa7b0

Browse files
Add comment and pub get
1 parent 27d79e6 commit 2afa7b0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,27 @@ jobs:
1414
# since we can only emit a single SBOM.
1515
build:
1616
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]
17-
with:
18-
sdk: 2.19.6 # This version doesn't matter so long as it resolves
1917

2018
checks:
2119
uses: Workiva/gha-dart-oss/.github/workflows/[email protected]
2220
with:
2321
additional-checks: |
2422
no_entrypoint_imports
2523
24+
# Run Dart 3 analysis as a separate job outside checks above in order to pre-run the
25+
# Dart-2-only file removal script. Consolidate this job with checks above once checks.yaml
26+
# supports a pre-run option or we upgrade to Dart 3 and remove the files.
2627
stable-analyze:
2728
runs-on: ubuntu-latest
2829
steps:
29-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3031
- uses: dart-lang/setup-dart@v1
3132
with:
3233
sdk: stable
3334

3435
- name: Print Dart SDK version
3536
run: dart --version
37+
- run: dart pub get
3638

3739
- name: Delete Dart-2-only files when running on Dart 3
3840
run: ./tool/delete_dart_2_only_files.sh
@@ -48,7 +50,7 @@ jobs:
4850
react: [17, 18]
4951
sdk: [2.19.6, stable]
5052
steps:
51-
- uses: actions/checkout@v2
53+
- uses: actions/checkout@v4
5254
- id: setup-dart
5355
uses: dart-lang/setup-dart@v1
5456
with:

0 commit comments

Comments
 (0)