Skip to content

Commit 0fecfd8

Browse files
committed
Merge package:collection into the core monorepo
2 parents 3a3ed8e + e961869 commit 0fecfd8

Some content is hidden

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

62 files changed

+13200
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Dependabot configuration file.
2+
version: 2
3+
4+
updates:
5+
- package-ecosystem: github-actions
6+
directory: /
7+
schedule:
8+
interval: monthly
9+
labels:
10+
- autosubmit
11+
groups:
12+
github-actions:
13+
patterns:
14+
- "*"
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Dart CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: "0 0 * * 0"
10+
11+
env:
12+
PUB_ENVIRONMENT: bot.github
13+
14+
jobs:
15+
# Check code formatting and static analysis on a single OS (linux)
16+
# against Dart dev.
17+
analyze:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
sdk: [dev]
23+
steps:
24+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
25+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
26+
with:
27+
sdk: ${{ matrix.sdk }}
28+
- id: install
29+
name: Install dependencies
30+
run: dart pub get
31+
- name: Check formatting
32+
run: dart format --output=none --set-exit-if-changed .
33+
if: always() && steps.install.outcome == 'success'
34+
- name: Analyze code
35+
run: dart analyze --fatal-infos
36+
if: always() && steps.install.outcome == 'success'
37+
38+
# Run tests on a matrix consisting of two dimensions:
39+
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
40+
# 2. release channel: dev
41+
test:
42+
needs: analyze
43+
runs-on: ${{ matrix.os }}
44+
strategy:
45+
fail-fast: false
46+
matrix:
47+
# Add macos-latest and/or windows-latest if relevant for this package.
48+
os: [ubuntu-latest]
49+
sdk: [3.4, dev]
50+
steps:
51+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
52+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
53+
with:
54+
sdk: ${{ matrix.sdk }}
55+
- id: install
56+
name: Install dependencies
57+
run: dart pub get
58+
- name: Run VM tests
59+
run: dart test --platform vm --test-randomize-ordering-seed=random
60+
if: always() && steps.install.outcome == 'success'
61+
- name: Run Chrome tests
62+
run: dart test --platform chrome --test-randomize-ordering-seed=random
63+
if: always() && steps.install.outcome == 'success'
64+
- name: Run Chrome tests - wasm
65+
run: dart test --platform chrome --compiler dart2wasm
66+
if: always() && steps.install.outcome == 'success'
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# A workflow to close issues where the author hasn't responded to a request for
2+
# more information; see https://github.com/actions/stale.
3+
4+
name: No Response
5+
6+
# Run as a daily cron.
7+
on:
8+
schedule:
9+
# Every day at 8am
10+
- cron: '0 8 * * *'
11+
12+
# All permissions not specified are set to 'none'.
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
17+
jobs:
18+
no-response:
19+
runs-on: ubuntu-latest
20+
if: ${{ github.repository_owner == 'dart-lang' }}
21+
steps:
22+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e
23+
with:
24+
# Don't automatically mark inactive issues+PRs as stale.
25+
days-before-stale: -1
26+
# Close needs-info issues and PRs after 14 days of inactivity.
27+
days-before-close: 14
28+
stale-issue-label: "needs-info"
29+
close-issue-message: >
30+
Without additional information we're not able to resolve this issue.
31+
Feel free to add more info or respond to any questions above and we
32+
can reopen the case. Thanks for your contribution!
33+
stale-pr-label: "needs-info"
34+
close-pr-message: >
35+
Without additional information we're not able to resolve this PR.
36+
Feel free to add more info or respond to any questions above.
37+
Thanks for your contribution!
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# A CI configuration to auto-publish pub packages.
2+
3+
name: Publish
4+
5+
on:
6+
pull_request:
7+
branches: [ master ]
8+
push:
9+
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
10+
11+
jobs:
12+
publish:
13+
if: ${{ github.repository_owner == 'dart-lang' }}
14+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
15+
permissions:
16+
id-token: write # Required for authentication using OIDC
17+
pull-requests: write # Required for writing the pull request note

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+
TimWhiting tim@whitings.org

0 commit comments

Comments
 (0)