Skip to content

Commit 65d653b

Browse files
authored
Share gitignore file across repo and add analyze analysis_defaults (#232)
1 parent ebfd00f commit 65d653b

File tree

12 files changed

+70
-57
lines changed

12 files changed

+70
-57
lines changed

.github/workflows/dart.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ jobs:
3939
- name: mono_repo self validate
4040
run: dart pub global run mono_repo generate --validate
4141
job_002:
42-
name: "analyzer_and_format; Dart 3.5.0; PKGS: pkgs/excerpter, pkgs/inject_dartpad; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos .`"
42+
name: "analyzer_and_format; Dart 3.5.0; PKGS: pkgs/analysis_defaults, pkgs/excerpter, pkgs/inject_dartpad; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos .`"
4343
runs-on: ubuntu-latest
4444
steps:
4545
- name: Cache Pub hosted dependencies
4646
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
4747
with:
4848
path: "~/.pub-cache/hosted"
49-
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/excerpter-pkgs/inject_dartpad;commands:format-analyze"
49+
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/analysis_defaults-pkgs/excerpter-pkgs/inject_dartpad;commands:format-analyze"
5050
restore-keys: |
51-
os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/excerpter-pkgs/inject_dartpad
51+
os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/analysis_defaults-pkgs/excerpter-pkgs/inject_dartpad
5252
os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0
5353
os:ubuntu-latest;pub-cache-hosted
5454
os:ubuntu-latest
@@ -59,6 +59,19 @@ jobs:
5959
- id: checkout
6060
name: Checkout repository
6161
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
62+
- id: pkgs_analysis_defaults_pub_upgrade
63+
name: pkgs/analysis_defaults; dart pub upgrade
64+
run: dart pub upgrade
65+
if: "always() && steps.checkout.conclusion == 'success'"
66+
working-directory: pkgs/analysis_defaults
67+
- name: "pkgs/analysis_defaults; dart format --output=none --set-exit-if-changed ."
68+
run: "dart format --output=none --set-exit-if-changed ."
69+
if: "always() && steps.pkgs_analysis_defaults_pub_upgrade.conclusion == 'success'"
70+
working-directory: pkgs/analysis_defaults
71+
- name: "pkgs/analysis_defaults; dart analyze --fatal-infos ."
72+
run: dart analyze --fatal-infos .
73+
if: "always() && steps.pkgs_analysis_defaults_pub_upgrade.conclusion == 'success'"
74+
working-directory: pkgs/analysis_defaults
6275
- id: pkgs_excerpter_pub_upgrade
6376
name: pkgs/excerpter; dart pub upgrade
6477
run: dart pub upgrade
@@ -86,16 +99,16 @@ jobs:
8699
if: "always() && steps.pkgs_inject_dartpad_pub_upgrade.conclusion == 'success'"
87100
working-directory: pkgs/inject_dartpad
88101
job_003:
89-
name: "analyzer_and_format; Dart dev; PKGS: pkgs/excerpter, pkgs/inject_dartpad; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos .`"
102+
name: "analyzer_and_format; Dart dev; PKGS: pkgs/analysis_defaults, pkgs/excerpter, pkgs/inject_dartpad; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos .`"
90103
runs-on: ubuntu-latest
91104
steps:
92105
- name: Cache Pub hosted dependencies
93106
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
94107
with:
95108
path: "~/.pub-cache/hosted"
96-
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/excerpter-pkgs/inject_dartpad;commands:format-analyze"
109+
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/analysis_defaults-pkgs/excerpter-pkgs/inject_dartpad;commands:format-analyze"
97110
restore-keys: |
98-
os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/excerpter-pkgs/inject_dartpad
111+
os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/analysis_defaults-pkgs/excerpter-pkgs/inject_dartpad
99112
os:ubuntu-latest;pub-cache-hosted;sdk:dev
100113
os:ubuntu-latest;pub-cache-hosted
101114
os:ubuntu-latest
@@ -106,6 +119,19 @@ jobs:
106119
- id: checkout
107120
name: Checkout repository
108121
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
122+
- id: pkgs_analysis_defaults_pub_upgrade
123+
name: pkgs/analysis_defaults; dart pub upgrade
124+
run: dart pub upgrade
125+
if: "always() && steps.checkout.conclusion == 'success'"
126+
working-directory: pkgs/analysis_defaults
127+
- name: "pkgs/analysis_defaults; dart format --output=none --set-exit-if-changed ."
128+
run: "dart format --output=none --set-exit-if-changed ."
129+
if: "always() && steps.pkgs_analysis_defaults_pub_upgrade.conclusion == 'success'"
130+
working-directory: pkgs/analysis_defaults
131+
- name: "pkgs/analysis_defaults; dart analyze --fatal-infos ."
132+
run: dart analyze --fatal-infos .
133+
if: "always() && steps.pkgs_analysis_defaults_pub_upgrade.conclusion == 'success'"
134+
working-directory: pkgs/analysis_defaults
109135
- id: pkgs_excerpter_pub_upgrade
110136
name: pkgs/excerpter; dart pub upgrade
111137
run: dart pub upgrade

.gitignore

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
# Dart-related files
2+
.dart_tool
3+
build
4+
doc/api/
5+
pubspec.lock
6+
7+
# IDE-related files
18
*.iml
29
.idea
310
.vscode
4-
.DS_Store
511

6-
.dart_tool
7-
build/
8-
9-
build
12+
# Platform-related files
13+
.DS_Store
1014

1115
# We want to ignore our StylesPath *except* for our local
1216
# `vocabularies/Base` directory.

doc/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Site-shared docs
3+
description: Site-shared docs
4+
---
5+
6+
# Site-shared docs
7+
8+
- [Infrastructure](infrastructure.md): shared site infrastructure.
9+
- [Examples](examples.md): how to organize site example code.
10+
- [Code excerpts](code-excerpts.md): how to use the code-excerpt feature
11+
and its associated tooling.
12+
- [Markdown](markdown.md) is an _Effective markdown_ guide.
13+
- [images](images.md)
14+
- [mobile friendly pages](mobile-friendly-pages.md)
15+
- [writing for dart and flutter websites](writing-for-dart-and-flutter-websites.md)

doc/index.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

mono_repo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See https://github.com/google/mono_repo.dart for details on this file
1+
# Reference https://pub.dev/packages/mono_repo for help with this file.
22
self_validate: analyzer_and_format
33

44
github:

pkgs/analysis_defaults/.gitignore

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:analysis_defaults/analysis.yaml

pkgs/analysis_defaults/mono_pkg.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Reference https://pub.dev/packages/mono_repo for help with this file.
2+
sdk:
3+
- pubspec
4+
- dev
5+
6+
stages:
7+
- analyzer_and_format:
8+
- group:
9+
- format
10+
- analyze: --fatal-infos .

pkgs/excerpter/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

pkgs/excerpter/mono_pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See https://github.com/google/mono_repo.dart for details on this file
1+
# Reference https://pub.dev/packages/mono_repo for help with this file.
22
sdk:
33
- pubspec
44
- dev

pkgs/inject_dartpad/.gitignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

pkgs/inject_dartpad/mono_pkg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See https://github.com/google/mono_repo.dart for details on this file
1+
# Reference https://pub.dev/packages/mono_repo for help with this file.
22
sdk:
33
- pubspec
44
- dev

0 commit comments

Comments
 (0)