Skip to content

Commit 5e83b5b

Browse files
authored
Merge branch 'main' into merge-typed_data-package
2 parents 8e43206 + 07aff97 commit 5e83b5b

File tree

95 files changed

+9803
-5
lines changed

Some content is hidden

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

95 files changed

+9803
-5
lines changed

.github/ISSUE_TEMPLATE/args.md

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

.github/ISSUE_TEMPLATE/logging.md

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

.github/ISSUE_TEMPLATE/path.md

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

.github/ISSUE_TEMPLATE/platform.md

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

.github/labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@
2424
- changed-files:
2525
- any-glob-to-any-file: 'pkgs/fixnum/**'
2626

27+
"package:logging":
28+
- changed-files:
29+
- any-glob-to-any-file: 'pkgs/logging/**'
30+
31+
"package:os_detect":
32+
- changed-files:
33+
- any-glob-to-any-file: 'pkgs/os_detect/**'
34+
35+
"package:path":
36+
- changed-files:
37+
- any-glob-to-any-file: 'pkgs/path/**'
38+
39+
"package:platform":
40+
- changed-files:
41+
- any-glob-to-any-file: 'pkgs/platform/**'
42+
2743
"package:typed_data":
2844
- changed-files:
2945
- any-glob-to-any-file: 'pkgs/typed_data/**'

.github/workflows/health.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
uses: dart-lang/ecosystem/.github/workflows/health.yaml@main
1010
with:
1111
ignore_coverage: "**.mock.dart,**.g.dart"
12-
ignore_license: "**.mock.dart,**.g.dart,**.mocks.dart"
12+
ignore_license: "**.mock.dart,**.g.dart,**.mocks.dart,pkgs/platform/*"
1313
permissions:
1414
pull-requests: write

.github/workflows/logging.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: package:logging
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/logging.yaml'
9+
- 'pkgs/logging/**'
10+
pull_request:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/logging.yaml'
14+
- 'pkgs/logging/**'
15+
schedule:
16+
- cron: "0 0 * * 0"
17+
env:
18+
PUB_ENVIRONMENT: bot.github
19+
20+
defaults:
21+
run:
22+
working-directory: pkgs/logging/
23+
24+
jobs:
25+
# Check code formatting and static analysis.
26+
analyze:
27+
runs-on: ubuntu-latest
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
sdk: [dev]
32+
steps:
33+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
34+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
35+
with:
36+
sdk: ${{ matrix.sdk }}
37+
- id: install
38+
name: Install dependencies
39+
run: dart pub get
40+
- name: Check formatting
41+
run: dart format --output=none --set-exit-if-changed .
42+
if: always() && steps.install.outcome == 'success'
43+
- name: Analyze code
44+
run: dart analyze --fatal-infos
45+
if: always() && steps.install.outcome == 'success'
46+
47+
# Run tests on a matrix of platforms and sdk versions.
48+
test:
49+
needs: analyze
50+
runs-on: ${{ matrix.os }}
51+
strategy:
52+
fail-fast: false
53+
matrix:
54+
# Add macos-latest and/or windows-latest if relevant for this package.
55+
os: [ubuntu-latest]
56+
sdk: [3.4, dev]
57+
steps:
58+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
59+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
60+
with:
61+
sdk: ${{ matrix.sdk }}
62+
- id: install
63+
name: Install dependencies
64+
run: dart pub get
65+
- name: Run VM tests
66+
run: dart test --platform vm
67+
if: always() && steps.install.outcome == 'success'
68+
- name: Run Chrome tests
69+
run: dart test --platform chrome
70+
if: always() && steps.install.outcome == 'success'

.github/workflows/os_detect.yaml

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

.github/workflows/path.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: package:path
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/path.yaml'
9+
- 'pkgs/path/**'
10+
pull_request:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/path.yaml'
14+
- 'pkgs/path/**'
15+
schedule:
16+
- cron: "0 0 * * 0"
17+
env:
18+
PUB_ENVIRONMENT: bot.github
19+
20+
defaults:
21+
run:
22+
working-directory: pkgs/path/
23+
24+
jobs:
25+
# Check code formatting and static analysis on a single OS (linux)
26+
# against Dart dev and stable.
27+
analyze:
28+
runs-on: ubuntu-latest
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
sdk: [dev]
33+
steps:
34+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
35+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
36+
with:
37+
sdk: ${{ matrix.sdk }}
38+
- id: install
39+
name: Install dependencies
40+
run: dart pub get
41+
- name: Check formatting
42+
run: dart format --output=none --set-exit-if-changed .
43+
if: always() && steps.install.outcome == 'success'
44+
- name: Analyze code
45+
run: dart analyze --fatal-infos
46+
if: always() && steps.install.outcome == 'success'
47+
48+
test:
49+
needs: analyze
50+
runs-on: ${{ matrix.os }}
51+
strategy:
52+
matrix:
53+
os: [ubuntu-latest]
54+
sdk: [3.4, dev]
55+
steps:
56+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
57+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
58+
with:
59+
sdk: ${{ matrix.sdk }}
60+
- run: dart pub get
61+
- run: dart test --platform vm,chrome
62+
- name: Run Chrome tests - wasm
63+
run: dart test --platform chrome --compiler dart2wasm
64+
if: always() && steps.install.outcome == 'success'

0 commit comments

Comments
 (0)