Document vector_math Plane API #89
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2026 The Flutter Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| # Workflow to analyze and test all packages against a matrix of Dart versions. | |
| # | |
| # To run locally: | |
| # gh act pull_request | |
| name: Multi-Version | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| # Declare default permissions as read only. | |
| permissions: | |
| contents: read | |
| jobs: | |
| analyze: | |
| name: Analyze and Test - Dart ${{ matrix.dart-sdk }} | |
| # This creates a separate job for every version in the list | |
| strategy: | |
| # See https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#supported-flutter-versions | |
| # TODO(stuartmorgan): Add a Dart version of --skip-if-not-supporting-flutter-version | |
| # and pass that for non-'main' | |
| matrix: | |
| dart-sdk: [ 3.11.5, 3.12.0, main ] | |
| fail-fast: false # Continues other versions even if one fails | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up environment and tooling | |
| id: setup | |
| uses: ./.github/actions/set-up-repo | |
| with: | |
| dart-sdk: ${{ matrix.dart-sdk }} | |
| - name: Run Dart unit tests | |
| if: ${{ !cancelled() && steps.setup.outcome == 'success' }} | |
| run: | | |
| dart pub global run flutter_plugin_tools test | |
| - name: Run analyze | |
| id: analyze | |
| if: ${{ !cancelled() && steps.setup.outcome == 'success' }} | |
| run: | | |
| dart pub global run flutter_plugin_tools analyze | |
| - name: Run downgraded analyze | |
| # If regular analysis failed, no need to run downgraded analysis. | |
| if: ${{ !cancelled() && steps.setup.outcome == 'success' && steps.analyze.outcome == 'success' }} | |
| run: | | |
| dart pub global run flutter_plugin_tools analyze --downgrade |