Skip to content

Commit

Permalink
Merge branch 'main' into merge-yaml_edit-package
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem authored Dec 20, 2024
2 parents 9a4c94d + 27f829e commit cc22c3d
Show file tree
Hide file tree
Showing 363 changed files with 34,756 additions and 912 deletions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/pubspec_parse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:pubspec_parse"
about: "Create a bug or file a feature request against package:pubspec_parse."
labels: "package:pubspec_parse"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/stack_trace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:stack_trace"
about: "Create a bug or file a feature request against package:stack_trace."
labels: "package:stack_trace"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/stream_channel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:stream_channel"
about: "Create a bug or file a feature request against package:stream_channel."
labels: "package:stream_channel"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/stream_transform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:stream_transform"
about: "Create a bug or file a feature request against package:stream_transform."
labels: "package:stream_transform"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/string_scanner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:string_scanner"
about: "Create a bug or file a feature request against package:string_scanner."
labels: "package:string_scanner"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/term_glyph.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:term_glyph"
about: "Create a bug or file a feature request against package:term_glyph."
labels: "package:term_glyph"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/test_reflective_loader.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:test_reflective_loader"
about: "Create a bug or file a feature request against package:test_reflective_loader."
labels: "package:test_reflective_loader"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/timing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:timing"
about: "Create a bug or file a feature request against package:timing."
labels: "package:timing"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/watcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:watcher"
about: "Create a bug or file a feature request against package:watcher."
labels: "package:watcher"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:yaml"
about: "Create a bug or file a feature request against package:yaml."
labels: "package:yaml"
---
36 changes: 36 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/pub_semver/**'

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

'package:source_map_stack_trace':
- changed-files:
- any-glob-to-any-file: 'pkgs/source_map_stack_trace/**'
Expand All @@ -108,10 +112,42 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/sse/**'

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

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

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

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

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

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

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

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

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

'package:yaml_edit':
- changed-files:
- any-glob-to-any-file: 'pkgs/yaml_edit/**'
2 changes: 2 additions & 0 deletions .github/workflows/bazel_worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}
- run: dart pub get
- run: "dart format --output=none --set-exit-if-changed ."
if: ${{ matrix.sdk == 'dev' }}
- name: Test
run: ./tool/travis.sh
4 changes: 2 additions & 2 deletions .github/workflows/clock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/clock.yml'
- '.github/workflows/clock.yaml'
- 'pkgs/clock/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/clock.yml'
- '.github/workflows/clock.yaml'
- 'pkgs/clock/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/pubspec_parse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: package:pubspec_parse

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

env:
PUB_ENVIRONMENT: bot.github


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

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@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
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:
os: [ubuntu-latest]
sdk: [3.2, dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm --run-skipped
if: always() && steps.install.outcome == 'success'
75 changes: 75 additions & 0 deletions .github/workflows/stack_trace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: package:stack_trace

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

env:
PUB_ENVIRONMENT: bot.github


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

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@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
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@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
- name: Run browser tests
run: dart test --platform chrome
if: always() && steps.install.outcome == 'success'
74 changes: 74 additions & 0 deletions .github/workflows/stream_channel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: package:stream_channel

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

env:
PUB_ENVIRONMENT: bot.github

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

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@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
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.3, dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
- name: Run Chrome tests
run: dart test --platform chrome
if: always() && steps.install.outcome == 'success'
Loading

0 comments on commit cc22c3d

Please sign in to comment.