Skip to content

Commit

Permalink
Merge branch 'main' into merge-benchmark_harness-package
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem authored Oct 29, 2024
2 parents 9f5aab2 + 411d26d commit ba527fc
Show file tree
Hide file tree
Showing 180 changed files with 77,474 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/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/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/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"
---
20 changes: 20 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
- 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/**'
Expand All @@ -12,14 +16,26 @@
- 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:clock':
- changed-files:
- any-glob-to-any-file: 'pkgs/clock/**'

'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 +52,10 @@
- changed-files:
- any-glob-to-any-file: 'pkgs/graphs/**'

'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
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
75 changes: 75 additions & 0 deletions .github/workflows/clock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: package:clock

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

env:
PUB_ENVIRONMENT: bot.github


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

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

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

env:
PUB_ENVIRONMENT: bot.github


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

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, windows-latest]
sdk: [3.1, 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'
75 changes: 75 additions & 0 deletions .github/workflows/json_rpc_2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: package:json_rpc_2

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

env:
PUB_ENVIRONMENT: bot.github


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

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
if: always() && steps.install.outcome == 'success'
- name: Run browser tests
run: dart test --platform chrome --compiler dart2wasm,dart2js
if: always() && steps.install.outcome == 'success'
Loading

0 comments on commit ba527fc

Please sign in to comment.