From a6b4bbbf13139892a2b628483b99e5fa96afc789 Mon Sep 17 00:00:00 2001 From: Chris Swan <478926+cpswan@users.noreply.github.com> Date: Mon, 20 May 2024 12:56:11 +0100 Subject: [PATCH 1/2] ci: Add Flutter beta channel to matrix --- .github/workflows/static_analysis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index d1ceb7c5..7ab2f68f 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -34,12 +34,15 @@ jobs: - at_onboarding_flutter - at_sync_ui_flutter - at_theme_flutter + flutter-channel: + - stable + - beta steps: - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # v2.16.0 with: - channel: "stable" + channel: "${{ matrix.flutter-channel}}" - uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: go-version: 'stable' From 2391af7dc8ce59bfffea11d361495a613777cfce Mon Sep 17 00:00:00 2001 From: Chris Swan <478926+cpswan@users.noreply.github.com> Date: Mon, 20 May 2024 14:25:06 +0100 Subject: [PATCH 2/2] ci: Don't supress info failures when running against beta channel --- .github/workflows/static_analysis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 7ab2f68f..30527854 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -53,7 +53,11 @@ jobs: run: | touch example/.env flutter pub get - flutter analyze --no-fatal-infos + if [ "${{ matrix.flutter-channel}}" = "beta" ]; then + flutter analyze + else + flutter analyze --no-fatal-infos + fi # Runs osv-scanner to find any vulnerable Dart dependencies # It needs to look at pubspec.lock files, which is why it's