Skip to content

Commit dec28c1

Browse files
authored
Merge pull request #579 from dart-lang/merge-collection-package
Merge `package:collection`
2 parents 3a3ed8e + 9c59e2b commit dec28c1

Some content is hidden

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

61 files changed

+13110
-0
lines changed

.github/ISSUE_TEMPLATE/collection.md

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

.github/labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
- changed-files:
1313
- any-glob-to-any-file: 'pkgs/characters/**'
1414

15+
"package:collection":
16+
- changed-files:
17+
- any-glob-to-any-file: 'pkgs/collection/**'
18+
1519
"package:convert":
1620
- changed-files:
1721
- any-glob-to-any-file: 'pkgs/convert/**'

.github/workflows/collection.yaml

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

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This repository is home to various Dart packages under the [dart.dev](https://pu
1111
| [args](pkgs/args/) | Library for defining parsers for parsing raw command-line arguments into a set of options and values. | [![pub package](https://img.shields.io/pub/v/args.svg)](https://pub.dev/packages/args) |
1212
| [async](pkgs/async/) | Utility functions and classes related to the 'dart:async' library.| [![pub package](https://img.shields.io/pub/v/async.svg)](https://pub.dev/packages/async) |
1313
| [characters](pkgs/characters/) | String replacement with operations that are Unicode/grapheme cluster aware. | [![pub package](https://img.shields.io/pub/v/characters.svg)](https://pub.dev/packages/characters) |
14+
| [collection](pkgs/collection/) | Collections and utilities functions and classes related to collections. | [![pub package](https://img.shields.io/pub/v/collection.svg)](https://pub.dev/packages/collection) |
1415
| [convert](pkgs/convert/) | Utilities for converting between data representations. | [![pub package](https://img.shields.io/pub/v/convert.svg)](https://pub.dev/packages/convert) |
1516
| [crypto](pkgs/crypto/) | Implementations of SHA, MD5, and HMAC cryptographic functions. | [![pub package](https://img.shields.io/pub/v/crypto.svg)](https://pub.dev/packages/crypto) |
1617
| [fixnum](pkgs/fixnum/) | Library for 32- and 64-bit signed fixed-width integers. | [![pub package](https://img.shields.io/pub/v/fixnum.svg)](https://pub.dev/packages/fixnum) |

pkgs/collection/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.buildlog
2+
.DS_Store
3+
.idea
4+
.pub/
5+
.dart_tool/
6+
.settings/
7+
build/
8+
packages
9+
.packages
10+
pubspec.lock

pkgs/collection/AUTHORS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Below is a list of people and organizations that have contributed
2+
# to the project. Names should be added to the list like so:
3+
#
4+
# Name/Organization <email address>
5+
6+
Google Inc.
7+
AAABramenko (https://github.com/AAAbramenko)
8+

0 commit comments

Comments
 (0)