Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share gitignore file across repo and add analyze analysis_defaults #232

Merged
merged 4 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ jobs:
- name: mono_repo self validate
run: dart pub global run mono_repo generate --validate
job_002:
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 .`"
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 .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/excerpter-pkgs/inject_dartpad;commands:format-analyze"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/analysis_defaults-pkgs/excerpter-pkgs/inject_dartpad;commands:format-analyze"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/excerpter-pkgs/inject_dartpad
os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0;packages:pkgs/analysis_defaults-pkgs/excerpter-pkgs/inject_dartpad
os:ubuntu-latest;pub-cache-hosted;sdk:3.5.0
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
Expand All @@ -59,6 +59,19 @@ jobs:
- id: checkout
name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- id: pkgs_analysis_defaults_pub_upgrade
name: pkgs/analysis_defaults; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: pkgs/analysis_defaults
- name: "pkgs/analysis_defaults; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.pkgs_analysis_defaults_pub_upgrade.conclusion == 'success'"
working-directory: pkgs/analysis_defaults
- name: "pkgs/analysis_defaults; dart analyze --fatal-infos ."
run: dart analyze --fatal-infos .
if: "always() && steps.pkgs_analysis_defaults_pub_upgrade.conclusion == 'success'"
working-directory: pkgs/analysis_defaults
- id: pkgs_excerpter_pub_upgrade
name: pkgs/excerpter; dart pub upgrade
run: dart pub upgrade
Expand Down Expand Up @@ -86,16 +99,16 @@ jobs:
if: "always() && steps.pkgs_inject_dartpad_pub_upgrade.conclusion == 'success'"
working-directory: pkgs/inject_dartpad
job_003:
name: "analyzer_and_format; Dart dev; PKGS: pkgs/excerpter, pkgs/inject_dartpad; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos .`"
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 .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/excerpter-pkgs/inject_dartpad;commands:format-analyze"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/analysis_defaults-pkgs/excerpter-pkgs/inject_dartpad;commands:format-analyze"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/excerpter-pkgs/inject_dartpad
os:ubuntu-latest;pub-cache-hosted;sdk:dev;packages:pkgs/analysis_defaults-pkgs/excerpter-pkgs/inject_dartpad
os:ubuntu-latest;pub-cache-hosted;sdk:dev
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
Expand All @@ -106,6 +119,19 @@ jobs:
- id: checkout
name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- id: pkgs_analysis_defaults_pub_upgrade
name: pkgs/analysis_defaults; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: pkgs/analysis_defaults
- name: "pkgs/analysis_defaults; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.pkgs_analysis_defaults_pub_upgrade.conclusion == 'success'"
working-directory: pkgs/analysis_defaults
- name: "pkgs/analysis_defaults; dart analyze --fatal-infos ."
run: dart analyze --fatal-infos .
if: "always() && steps.pkgs_analysis_defaults_pub_upgrade.conclusion == 'success'"
working-directory: pkgs/analysis_defaults
- id: pkgs_excerpter_pub_upgrade
name: pkgs/excerpter; dart pub upgrade
run: dart pub upgrade
Expand Down
14 changes: 9 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Dart-related files
.dart_tool
build
doc/api/
pubspec.lock

# IDE-related files
*.iml
.idea
.vscode
.DS_Store

.dart_tool
build/

build
# Platform-related files
.DS_Store

# We want to ignore our StylesPath *except* for our local
# `vocabularies/Base` directory.
Expand Down
1 change: 0 additions & 1 deletion doc/README.md

This file was deleted.

15 changes: 15 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Site-shared docs
description: Site-shared docs
---

# Site-shared docs

- [Infrastructure](infrastructure.md): shared site infrastructure.
- [Examples](examples.md): how to organize site example code.
- [Code excerpts](code-excerpts.md): how to use the code-excerpt feature
and its associated tooling.
- [Markdown](markdown.md) is an _Effective markdown_ guide.
- [images](images.md)
- [mobile friendly pages](mobile-friendly-pages.md)
- [writing for dart and flutter websites](writing-for-dart-and-flutter-websites.md)
15 changes: 0 additions & 15 deletions doc/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion mono_repo.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See https://github.com/google/mono_repo.dart for details on this file
# Reference https://pub.dev/packages/mono_repo for help with this file.
self_validate: analyzer_and_format

github:
Expand Down
14 changes: 0 additions & 14 deletions pkgs/analysis_defaults/.gitignore

This file was deleted.

1 change: 1 addition & 0 deletions pkgs/analysis_defaults/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: package:analysis_defaults/analysis.yaml
10 changes: 10 additions & 0 deletions pkgs/analysis_defaults/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Reference https://pub.dev/packages/mono_repo for help with this file.
sdk:
- pubspec
- dev

stages:
- analyzer_and_format:
- group:
- format
- analyze: --fatal-infos .
2 changes: 0 additions & 2 deletions pkgs/excerpter/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion pkgs/excerpter/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See https://github.com/google/mono_repo.dart for details on this file
# Reference https://pub.dev/packages/mono_repo for help with this file.
sdk:
- pubspec
- dev
Expand Down
11 changes: 0 additions & 11 deletions pkgs/inject_dartpad/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion pkgs/inject_dartpad/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See https://github.com/google/mono_repo.dart for details on this file
# Reference https://pub.dev/packages/mono_repo for help with this file.
sdk:
- pubspec
- dev
Expand Down