From 59c6b0ff6f1fd1c05c0152f987f63d6949716201 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 26 Apr 2025 17:12:27 +0200 Subject: [PATCH 1/4] Changed pipeline to push on all branches --- .github/workflows/dart.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 79739e8..705ff84 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -7,7 +7,7 @@ name: Dart on: push: - branches: [ "develop" ] + branches-ignore: [] pull_request: branches: [ "develop" ] From a2571786f91d00e96243257fc215f4907b1d3d10 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 26 Apr 2025 17:18:56 +0200 Subject: [PATCH 2/4] Implemented second job --- .github/workflows/dart.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 705ff84..7f329e3 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -25,7 +25,7 @@ jobs: - uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603 - name: Install dependencies - run: dart pub get + run: flutter pub get # Uncomment this step to verify the use of 'dart format' on each commit. # - name: Verify formatting @@ -33,10 +33,18 @@ jobs: # Consider passing '--fatal-infos' for slightly stricter analysis. - name: Analyze project source - run: dart analyze + run: flutter analyze --fatal-infos + + - name: Run App + run: flutter run + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603 # Your project will need to have tests in test/ and a dependency on # package:test for this step to succeed. Note that Flutter projects will # want to change this to 'flutter test'. - name: Run tests - run: dart test + run: flutter test From 4d0c38dd476f8c07ffe3c7bac65f5ba1244d1dad Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 26 Apr 2025 17:22:18 +0200 Subject: [PATCH 3/4] Changed env to flutter --- .github/workflows/dart.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 7f329e3..07a890f 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -17,12 +17,12 @@ jobs: steps: - uses: actions/checkout@v4 - - # Note: This workflow uses the latest stable version of the Dart SDK. - # You can specify other versions if desired, see documentation here: - # https://github.com/dart-lang/setup-dart/blob/main/README.md - # - uses: dart-lang/setup-dart@v1 - - uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603 + + - name: Set Up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.22.2' + channel: 'stable' - name: Install dependencies run: flutter pub get From ad032afcd8a343063469099d9e48c3f4ddc8fbb4 Mon Sep 17 00:00:00 2001 From: Felix Date: Sat, 26 Apr 2025 17:25:30 +0200 Subject: [PATCH 4/4] Fixed flutter version --- .github/workflows/dart.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 07a890f..53c5956 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -21,7 +21,7 @@ jobs: - name: Set Up Flutter uses: subosito/flutter-action@v2 with: - flutter-version: '3.22.2' + flutter-version: '3.29.2' channel: 'stable' - name: Install dependencies @@ -39,9 +39,16 @@ jobs: run: flutter run test: runs-on: ubuntu-latest + steps: - uses: actions/checkout@v4 - - uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603 + + - name: Set Up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.29.2' + channel: 'stable' + # Your project will need to have tests in test/ and a dependency on # package:test for this step to succeed. Note that Flutter projects will