Skip to content

Commit 68c2b95

Browse files
authored
Update Flutter workflow to use subosito/flutter-action
1 parent cfd9599 commit 68c2b95

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/flutter-web.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,13 @@ jobs:
1717
- name: Checkout Repository
1818
uses: actions/checkout@v4
1919

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

2725
- name: Install dependencies
28-
run: dart pub get
29-
30-
# Consider passing '--fatal-infos' for slightly stricter analysis.
31-
- name: Analyze project source
32-
run: dart analyze
33-
26+
run: flutter pub get
3427

3528
- name: Build Web
3629
run: flutter build web --release --base-href "/Polizei-Flutter-Template/"
@@ -39,7 +32,7 @@ jobs:
3932
# package:test for this step to succeed. Note that Flutter projects will
4033
# want to change this to 'flutter test'.
4134
- name: Run tests
42-
run: dart test
35+
run: flutter test
4336

4437
- name: Deploy to GitHub Pages
4538
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)