Update a pubspec and platform runners #105
Workflow file for this run
This file contains 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
name: Test Assets for APIs | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# Declare default permissions as read only. | |
permissions: read-all | |
jobs: | |
build: | |
name: Test Assets for APIs | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
# Set up Flutter. | |
- name: Clone Flutter repository with master channel | |
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa | |
with: | |
channel: master | |
- name: Setup environment | |
run: | | |
flutter doctor -v | |
# Pinned version of the plugin tools, to avoid breakage in this repository | |
# when pushing updates from flutter/plugins. | |
dart pub global activate flutter_plugin_tools 0.13.4+3 | |
# Checkout assets-for-api-docs code and get packages. | |
- name: Checkout Assets for APIs code | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: analyze+format - format | |
run: ./ci/tool_runner format --fail-on-change --clang-format=clang-format-12 | |
# Analize+format | |
- name: analyze+format - license | |
run: dart pub global run flutter_plugin_tools license-check | |
- name: analyze+format - analyze | |
run: ./ci/tool_runner analyze --custom-analysis=web_benchmarks/testing/test_app,flutter_lints/example | |
- name: analyze+format - pubspec | |
run: ./ci/tool_runner pubspec-check | |
# Publishable | |
- name: publishable - version | |
run: ./ci/tool_runner version-check | |
- name: publishable - publishable | |
run: ./ci/tool_runner publish-check --allow-pre-release | |
# Tests | |
- name: test | |
run: ./ci/test |