From 5dcc88e9ca8748bdd4981f584aa588f6cc9b5167 Mon Sep 17 00:00:00 2001 From: piotruela Date: Thu, 22 Aug 2024 22:36:38 +0200 Subject: [PATCH] Setup flutter before running dart-apitool --- .github/workflows/patrol-check-semver.yaml | 6 ++++++ .github/workflows/patrol-publish.yaml | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/patrol-check-semver.yaml b/.github/workflows/patrol-check-semver.yaml index 88f46209a..d75a5c8da 100644 --- a/.github/workflows/patrol-check-semver.yaml +++ b/.github/workflows/patrol-check-semver.yaml @@ -37,6 +37,12 @@ jobs: with: sdk: stable + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.22.x' + channel: 'stable' + - name: Install dart-apitool run: dart pub global activate dart_apitool diff --git a/.github/workflows/patrol-publish.yaml b/.github/workflows/patrol-publish.yaml index a29142aea..93457e08b 100644 --- a/.github/workflows/patrol-publish.yaml +++ b/.github/workflows/patrol-publish.yaml @@ -28,6 +28,12 @@ jobs: name: Check API changes runs-on: ubuntu-latest needs: [get_last_released_version] + + strategy: + matrix: + flutter-version: ['3.22.x'] + flutter-channel: ['stable'] + steps: - name: Clone repository uses: actions/checkout@v4 @@ -37,6 +43,12 @@ jobs: with: sdk: stable + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: ${{ matrix.flutter-version }} + channel: ${{ matrix.flutter-channel }} + - name: Install dart-apitool run: dart pub global activate dart_apitool