Skip to content

Commit

Permalink
Merge branch 'main' into merge-html-package
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem authored Oct 29, 2024
2 parents e12f92e + 4a94350 commit 0e9dfda
Show file tree
Hide file tree
Showing 290 changed files with 93,680 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/bazel_worker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:bazel_worker"
about: "Create a bug or file a feature request against package:bazel_worker."
labels: "package:bazel_worker"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/benchmark_harness.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:benchmark_harness"
about: "Create a bug or file a feature request against package:benchmark_harness."
labels: "package:benchmark_harness"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/browser_launcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:browser_launcher"
about: "Create a bug or file a feature request against package:browser_launcher."
labels: "package:browser_launcher"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/cli_util.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:cli_util"
about: "Create a bug or file a feature request against package:cli_util."
labels: "package:cli_util"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/clock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:clock"
about: "Create a bug or file a feature request against package:clock."
labels: "package:clock"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/code_builder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:code_builder"
about: "Create a bug or file a feature request against package:code_builder."
labels: "package:code_builder"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/csslib.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:csslib"
about: "Create a bug or file a feature request against package:csslib."
labels: "package:csslib"
---
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/json_rpc_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:json_rpc_2"
about: "Create a bug or file a feature request against package:json_rpc_2."
labels: "package:json_rpc_2"
---
32 changes: 32 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,46 @@
- changed-files:
- any-glob-to-any-file: '.github/**'

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

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

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

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

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

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

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

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

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

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

'package:extension_discovery':
- changed-files:
- any-glob-to-any-file: 'pkgs/extension_discovery/**'
Expand All @@ -36,6 +64,10 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/html/**'

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

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

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

env:
PUB_ENVIRONMENT: bot.github


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

jobs:
# Run the test script against the latest dev build.
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [3.1.0, dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- run: "dart format --output=none --set-exit-if-changed ."
- name: Test
run: ./tool/travis.sh
74 changes: 74 additions & 0 deletions .github/workflows/benchmark_harness.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: package:benchmark_harness

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

env:
PUB_ENVIRONMENT: bot.github

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

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.2, 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
if: always() && steps.install.outcome == 'success'
- name: Run Chrome tests
run: dart test --platform chrome
if: always() && steps.install.outcome == 'success'
46 changes: 46 additions & 0 deletions .github/workflows/browser_launcher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: package:browser_launcher

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

env:
PUB_ENVIRONMENT: bot.github
DISPLAY: ':99'

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

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [3.4, dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}

- run: dart pub get

- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze --fatal-infos

- name: Run Xvfb
run: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

- run: dart test
66 changes: 66 additions & 0 deletions .github/workflows/cli_util.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: package:cli_util

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

env:
PUB_ENVIRONMENT: bot.github


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

jobs:
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'

test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
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 tests
run: dart test --test-randomize-ordering-seed=random
if: always() && steps.install.outcome == 'success'
Loading

0 comments on commit 0e9dfda

Please sign in to comment.