Skip to content

Commit 81132e0

Browse files
authored
Update dart.yml
1 parent c9572aa commit 81132e0

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

.github/workflows/dart.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# separate terms of service, privacy policy, and support
44
# documentation.
55

6-
name: Dart
6+
name: Flutter CI
77

88
on:
99
push:
@@ -18,25 +18,28 @@ 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+
# 1. CHANGED: Use the Flutter-specific action
22+
- uses: subosito/flutter-action@v2
23+
with:
24+
channel: 'stable' # or 'beta' or 'dev' if needed
2625

26+
# 2. CHANGED: Install dependencies using flutter pub get
2727
- name: Install dependencies
28-
run: dart pub get
28+
run: flutter pub get
2929

30-
# Uncomment this step to verify the use of 'dart format' on each commit.
31-
# - name: Verify formatting
32-
# run: dart format --output=none --set-exit-if-changed .
30+
# Optional: Check code formatting (recommended)
31+
- name: Verify formatting
32+
run: dart format --output=none --set-exit-if-changed .
3333

34-
# Consider passing '--fatal-infos' for slightly stricter analysis.
34+
# Check for common programming errors and style issues (recommended)
3535
- name: Analyze project source
3636
run: dart analyze
3737

38-
# Your project will need to have tests in test/ and a dependency on
39-
# package:test for this step to succeed. Note that Flutter projects will
40-
# want to change this to 'flutter test'.
38+
# 3. CHANGED: Run tests using flutter test
39+
# This step requires you to have tests written in your 'test/' folder.
4140
- name: Run tests
42-
run: dart test
41+
run: flutter test
42+
43+
# Optional: Build the APK or Web App (add this if you want to verify a full build)
44+
- name: Build APK (Android)
45+
run: flutter build apk --release

0 commit comments

Comments
 (0)