Skip to content

Commit a539261

Browse files
[ci] Roll repo tooling and add readme-check (#1667)
1 parent cd0a20b commit a539261

File tree

8 files changed

+40
-5
lines changed

8 files changed

+40
-5
lines changed

.ci/scripts/prepare_tool.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ git fetch origin master
88

99
# Pinned version of the plugin tools, to avoid breakage in this repository
1010
# when pushing updates from flutter/plugins.
11-
dart pub global activate flutter_plugin_tools 0.8.2+1
11+
dart pub global activate flutter_plugin_tools 0.8.4

.cirrus.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ task:
5959
license_script: dart pub global run flutter_plugin_tools license-check
6060
analyze_script: ./script/tool_runner.sh analyze --custom-analysis=script/configs/custom_analysis.yaml
6161
pubspec_script: ./script/tool_runner.sh pubspec-check
62+
readme_script:
63+
- ./script/tool_runner.sh readme-check
64+
# Re-run with --require-excerpts, skipping packages that still need
65+
# to be converted. Once https://github.com/flutter/flutter/issues/102679
66+
# has been fixed, this can be removed and there can just be a single
67+
# run with --require-excerpts and no exclusions.
68+
- ./script/tool_runner.sh readme-check --require-excerpts --exclude=script/configs/temp_exclude_excerpt.yaml
69+
- name: readme_excerpts
70+
env:
71+
CIRRUS_CLONE_SUBMODULES: true
72+
script: ./script/tool_runner.sh update-excerpts --fail-on-change
73+
6274
# Does a sanity check that packages at least pass analysis on the N-1 and N-2
6375
# versions of Flutter stable if the package claims to support that version.
6476
# This is to minimize accidentally making changes that break old versions

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
fetch-depth: 0 # Fetch all history so the tool can get all the tags to determine version.
3333
- name: Set up tools
34-
run: dart pub global activate flutter_plugin_tools 0.8.2+1
34+
run: dart pub global activate flutter_plugin_tools 0.8.4
3535

3636
# # This workflow should be the last to run. So wait for all the other tests to succeed.
3737
- name: Wait on all tests

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "site-shared"]
2+
path = site-shared
3+
url = https://github.com/dart-lang/site-shared

packages/flutter_markdown/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ formatted output of the Markdown widget. For example, in the following Markdown
7979
widget constructor, a text string with a smiley face emoji is passed in as the
8080
source Markdown data.
8181

82-
```
82+
```dart
8383
Markdown(
8484
controller: controller,
8585
selectable: true,
@@ -100,7 +100,7 @@ auto-links, and strike-through. To include the inline emoji tag syntax
100100
while maintaining the default GitHub flavored Markdown behavior, define
101101
an extension set that combines EmojiSyntax with ExtensionSet.gitHubFlavored.
102102

103-
```
103+
```dart
104104
import 'package:markdown/markdown.dart' as md;
105105
106106
Markdown(
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Packages that have not yet adopted code-excerpt.
2+
#
3+
# This only exists to allow incrementally adopting the new requirement.
4+
# Packages shoud never be added to this list.
5+
6+
# TODO(stuartmorgan): Remove everything from this list. See
7+
# https://github.com/flutter/flutter/issues/102679
8+
- cross_file
9+
- css_colors
10+
- extension_google_sign_in_as_googleapis_auth
11+
- flutter_image
12+
- flutter_markdown
13+
- go_router
14+
- go_router_builder
15+
- multicast_dns
16+
- palette_generator
17+
- pigeon
18+
- pointer_interceptor
19+
- rfw

site-shared

Submodule site-shared added at 8c92e5b

third_party/packages/cupertino_icons/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ https://pub.dev/packages/cupertino_icons
99

1010
[![pub package](https://img.shields.io/pub/v/cupertino_icons.svg)](https://pub.dev/packages/cupertino_icons)
1111

12-
```
12+
```yaml
1313
dependencies:
1414
cupertino_icons: ^<latest-version>
1515
```

0 commit comments

Comments
 (0)