-
Notifications
You must be signed in to change notification settings - Fork 50
Fix names of package CI scripts #1962
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
Merged
+188
−110
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
f22405a
Fix names of package CI scripts
kevmoo 5206375
File I'm at it...
kevmoo cfb880d
license
kevmoo 9eb2a00
make scripts happy
kevmoo e632f76
update pkg:test testing - there is none
kevmoo 2217f20
other oops
kevmoo 1380107
cleanup
kevmoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
6 changes: 3 additions & 3 deletions
6
.github/workflows/coverage.yml → .github/workflows/coverage.yaml
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: package:file_testing | ||
permissions: read-all | ||
|
||
on: | ||
# Run on PRs and pushes to the default branch. | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '.github/workflows/file_testing.yaml' | ||
- 'pkgs/file/**' | ||
- 'pkgs/file_testing/**' | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- '.github/workflows/file_testing.yaml' | ||
- 'pkgs/file/**' | ||
- 'pkgs/file_testing/**' | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
defaults: | ||
run: | ||
working-directory: pkgs/file_testing/ | ||
|
||
jobs: | ||
correctness: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 | ||
with: | ||
sdk: dev | ||
|
||
- run: dart pub get | ||
- run: dart format --output=none --set-exit-if-changed . | ||
- run: dart analyze --fatal-infos |
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
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
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
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
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
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
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
6 changes: 3 additions & 3 deletions
6
.github/workflows/source_map_stack_trace.yml → ...hub/workflows/source_map_stack_trace.yaml
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
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
17 changes: 14 additions & 3 deletions
17
...canner/.github/workflows/test-package.yml → .github/workflows/string_scanner.yaml
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.DS_Store | ||
# https://dart.dev/tools/pub/private-files | ||
.dart_tool | ||
pubspec.lock |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: readme_update | ||
publish_to: none | ||
environment: | ||
sdk: ^3.6.0 | ||
|
||
dependencies: | ||
path: ^1.9.1 | ||
pubspec_parse: ^1.5.0 | ||
yaml: ^3.1.3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
import 'dart:collection'; | ||
import 'dart:io'; | ||
|
||
import 'package:path/path.dart' as p; | ||
import 'package:pubspec_parse/pubspec_parse.dart'; | ||
import 'package:yaml/yaml.dart'; | ||
|
||
Future<void> main(List<String> args) async { | ||
// assume we're being run from the root of the `tools` directory | ||
final descriptions = SplayTreeMap<String, String>(); | ||
|
||
// * Enumerate all packages in `pkgs/` | ||
for (var directory in Directory(p.join(Directory.current.path, 'pkgs')) | ||
.listSync() | ||
.whereType<Directory>()) { | ||
final pubspecFile = File(p.join(directory.path, 'pubspec.yaml')); | ||
final pubspec = Pubspec.parse(pubspecFile.readAsStringSync(), | ||
sourceUrl: pubspecFile.uri); | ||
|
||
assert(p.basename(directory.path) == pubspec.name); | ||
|
||
// * Grab the `description` field from their pubspec files | ||
descriptions[pubspec.name] = pubspec.description!; | ||
} | ||
|
||
// * Ensure all packages have a file in `.github/workflows` | ||
for (var entry in descriptions.entries) { | ||
final workflowFile = File(p.join('.github/workflows', '${entry.key}.yaml')); | ||
|
||
final workflowYaml = | ||
loadYaml(workflowFile.readAsStringSync(), sourceUrl: workflowFile.uri) | ||
as YamlMap; | ||
|
||
final workflowName = workflowYaml['name'] as String; | ||
// * Ensure each has a name `package:[pkg name]` | ||
assert(workflowName == 'package:${entry.key}'); | ||
} | ||
|
||
// * Print out the readme table! | ||
|
||
print(''' | ||
| Package | Description | Issues | Version | | ||
| --- | --- | --- | --- |'''); | ||
|
||
for (var entry in descriptions.entries) { | ||
final pkgName = entry.key; | ||
final name = '[$pkgName](pkgs/$pkgName/)'; | ||
|
||
/* | ||
[](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Abazel_worker) | ||
[](https://pub.dev/packages/bazel_worker) | | ||
*/ | ||
|
||
final issues = | ||
'[](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3A$pkgName)'; | ||
final version = | ||
'[](https://pub.dev/packages/$pkgName)'; | ||
|
||
print(['', name, entry.value, issues, version, ''].join(' | ').trim()); | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.DS_Store
should be ignored on the dev machine!