Skip to content

Commit

Permalink
Merge pull request #579 from dart-lang/merge-collection-package
Browse files Browse the repository at this point in the history
Merge `package:collection`
  • Loading branch information
mosuem authored Oct 21, 2024
2 parents 3a3ed8e + 9c59e2b commit dec28c1
Show file tree
Hide file tree
Showing 61 changed files with 13,110 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/collection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:collection"
about: "Create a bug or file a feature request against package:collection."
labels: "package:collection"
---
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/characters/**'

"package:collection":
- changed-files:
- any-glob-to-any-file: 'pkgs/collection/**'

"package:convert":
- changed-files:
- any-glob-to-any-file: 'pkgs/convert/**'
Expand Down
77 changes: 77 additions & 0 deletions .github/workflows/collection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: package:collection

on:
# Run CI on pushes to the main branch, and on PRs against main.
push:
branches: [ main ]
paths:
- '.github/workflows/collection.yaml'
- 'pkgs/collection/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/collection.yaml'
- 'pkgs/collection/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github

defaults:
run:
working-directory: pkgs/collection/

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'

# Run tests on a matrix consisting of two dimensions:
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
# 2. release channel: dev
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [3.4, dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm --test-randomize-ordering-seed=random
if: always() && steps.install.outcome == 'success'
- name: Run Chrome tests
run: dart test --platform chrome --test-randomize-ordering-seed=random
if: always() && steps.install.outcome == 'success'
- name: Run Chrome tests - wasm
run: dart test --platform chrome --compiler dart2wasm
if: always() && steps.install.outcome == 'success'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This repository is home to various Dart packages under the [dart.dev](https://pu
| [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) |
| [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) |
| [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) |
| [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) |
| [convert](pkgs/convert/) | Utilities for converting between data representations. | [![pub package](https://img.shields.io/pub/v/convert.svg)](https://pub.dev/packages/convert) |
| [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) |
| [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) |
Expand Down
10 changes: 10 additions & 0 deletions pkgs/collection/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.buildlog
.DS_Store
.idea
.pub/
.dart_tool/
.settings/
build/
packages
.packages
pubspec.lock
8 changes: 8 additions & 0 deletions pkgs/collection/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Below is a list of people and organizations that have contributed
# to the project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.
AAABramenko (https://github.com/AAAbramenko)
TimWhiting [email protected]
Loading

0 comments on commit dec28c1

Please sign in to comment.