Skip to content

Commit bea4a35

Browse files
authored
Merge branch 'main' into merge-test_reflective_loader-package
2 parents 59d823e + b78c509 commit bea4a35

File tree

80 files changed

+1588
-643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1588
-643
lines changed

.github/ISSUE_TEMPLATE/timing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: "package:timing"
3+
about: "Create a bug or file a feature request against package:timing."
4+
labels: "package:timing"
5+
---

.github/labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@
112112
- changed-files:
113113
- any-glob-to-any-file: 'pkgs/test_reflective_loader/**'
114114

115+
'package:timing':
116+
- changed-files:
117+
- any-glob-to-any-file: 'pkgs/timing/**'
118+
115119
'package:unified_analytics':
116120
- changed-files:
117121
- any-glob-to-any-file: 'pkgs/unified_analytics/**'

.github/workflows/timing.yaml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: package:timing
2+
3+
on:
4+
# Run on PRs and pushes to the default branch.
5+
push:
6+
branches: [ main ]
7+
paths:
8+
- '.github/workflows/timing.yaml'
9+
- 'pkgs/timing/**'
10+
pull_request:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/timing.yaml'
14+
- 'pkgs/timing/**'
15+
schedule:
16+
- cron: "0 0 * * 0"
17+
18+
env:
19+
PUB_ENVIRONMENT: bot.github
20+
21+
22+
defaults:
23+
run:
24+
working-directory: pkgs/timing/
25+
26+
jobs:
27+
# Check code formatting and static analysis on a single OS (linux)
28+
# against Dart dev.
29+
analyze:
30+
runs-on: ubuntu-latest
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
sdk: [3.4, dev]
35+
steps:
36+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
37+
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
38+
with:
39+
sdk: ${{ matrix.sdk }}
40+
- id: install
41+
run: dart pub get
42+
- run: dart format --output=none --set-exit-if-changed .
43+
if: always() && steps.install.outcome == 'success'
44+
- run: dart analyze --fatal-infos
45+
if: always() && steps.install.outcome == 'success'
46+
47+
# Run tests on a matrix consisting of two dimensions:
48+
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
49+
# 2. release channel: dev, 2.2.0
50+
test:
51+
needs: analyze
52+
runs-on: ${{ matrix.os }}
53+
strategy:
54+
fail-fast: false
55+
matrix:
56+
# Add macos-latest and/or windows-latest if relevant for this package.
57+
os: [ubuntu-latest]
58+
sdk: [3.4, dev]
59+
steps:
60+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
61+
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
62+
with:
63+
sdk: ${{ matrix.sdk }}
64+
- id: install
65+
run: dart pub get
66+
- run: dart test --platform vm
67+
if: always() && steps.install.outcome == 'success'

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ don't naturally belong to other topic monorepos (like
4141
| [source_span](pkgs/source_span/) | Provides a standard representation for source code locations and spans. | [![package issues](https://img.shields.io/badge/package:source_span-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asource_span) | [![pub package](https://img.shields.io/pub/v/source_span.svg)](https://pub.dev/packages/source_span) |
4242
| [sse](pkgs/sse/) | Provides client and server functionality for setting up bi-directional communication through Server Sent Events (SSE) and corresponding POST requests. | [![package issues](https://img.shields.io/badge/package:sse-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asse) | [![pub package](https://img.shields.io/pub/v/sse.svg)](https://pub.dev/packages/sse) |
4343
| [test_reflective_loader](pkgs/test_reflective_loader/) | Support for discovering tests and test suites using reflection. | [![package issues](https://img.shields.io/badge/package:test_reflective_loader-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atest_reflective_loader) | [![pub package](https://img.shields.io/pub/v/test_reflective_loader.svg)](https://pub.dev/packages/test_reflective_loader) |
44+
| [timing](pkgs/timing/) | A simple package for tracking the performance of synchronous and asynchronous actions. | [![package issues](https://img.shields.io/badge/package:timing-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Atiming) | [![pub package](https://img.shields.io/pub/v/timing.svg)](https://pub.dev/packages/timing) |
4445
| [unified_analytics](pkgs/unified_analytics/) | A package for logging analytics for all Dart and Flutter related tooling to Google Analytics. | [![package issues](https://img.shields.io/badge/package:unified_analytics-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aunified_analytics) | [![pub package](https://img.shields.io/pub/v/unified_analytics.svg)](https://pub.dev/packages/unified_analytics) |
4546

4647
## Publishing automation

pkgs/file/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 7.0.2-wip
2+
13
## 7.0.1
24

35
* Update the pubspec repository field to reflect the new package repository.

pkgs/file/analysis_options.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
include: package:lints/recommended.yaml
2-
3-
analyzer:
4-
errors:
5-
# Allow having TODOs in the code
6-
todo: ignore
1+
include: package:dart_flutter_team_lints/analysis_options.yaml

pkgs/file/example/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import 'package:file/memory.dart';
77

88
Future<void> main() async {
99
final FileSystem fs = MemoryFileSystem();
10-
final Directory tmp = await fs.systemTempDirectory.createTemp('example_');
11-
final File outputFile = tmp.childFile('output');
10+
final tmp = await fs.systemTempDirectory.createTemp('example_');
11+
final outputFile = tmp.childFile('output');
1212
await outputFile.writeAsString('Hello world!');
1313
print(outputFile.readAsStringSync());
1414
}

pkgs/file/lib/chroot.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
/// A file system that provides a view into _another_ `FileSystem` via a path.
6+
library;
7+
68
export 'src/backends/chroot.dart';

pkgs/file/lib/file.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44

55
/// Core interfaces containing the abstract `FileSystem` interface definition
66
/// and all associated types used by `FileSystem`.
7+
library;
8+
79
export 'src/forwarding.dart';
810
export 'src/interface.dart';

pkgs/file/lib/local.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
/// A local file system implementation. This relies on the use of `dart:io`
66
/// and is thus not suitable for use in the browser.
7+
library;
8+
79
export 'src/backends/local.dart';

0 commit comments

Comments
 (0)