Skip to content

Commit 586abc4

Browse files
author
longnn5
committed
feat: migrate CI workflow from Dart to Flutter actions and commands
1 parent 0410572 commit 586abc4

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/dart.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,23 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
# Note: This workflow uses the latest stable version of the Dart SDK.
22-
# You can specify other versions if desired, see documentation here:
23-
# https://github.com/dart-lang/setup-dart/blob/main/README.md
24-
# - uses: dart-lang/setup-dart@v1
25-
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
21+
- uses: subosito/flutter-action@v2
22+
with:
23+
flutter-version: '3.27.4'
2624

2725
- name: Install dependencies
28-
run: dart pub get
26+
run: flutter pub get
2927

3028
# Uncomment this step to verify the use of 'dart format' on each commit.
3129
# - name: Verify formatting
3230
# run: dart format --output=none --set-exit-if-changed .
3331

3432
# Consider passing '--fatal-infos' for slightly stricter analysis.
3533
- name: Analyze project source
36-
run: dart analyze
34+
run: flutter analyze
3735

3836
# Your project will need to have tests in test/ and a dependency on
3937
# package:test for this step to succeed. Note that Flutter projects will
4038
# want to change this to 'flutter test'.
4139
- name: Run tests
42-
run: dart test
40+
run: flutter test

0 commit comments

Comments
 (0)