Skip to content

Commit ba527fc

Browse files
authored
Merge branch 'main' into merge-benchmark_harness-package
2 parents 9f5aab2 + 411d26d commit ba527fc

File tree

180 files changed

+77474
-0
lines changed

Some content is hidden

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

180 files changed

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

.github/ISSUE_TEMPLATE/clock.md

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

.github/ISSUE_TEMPLATE/csslib.md

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

.github/labeler.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
- changed-files:
55
- any-glob-to-any-file: '.github/**'
66

7+
'package:bazel_worker':
8+
- changed-files:
9+
- any-glob-to-any-file: 'pkgs/bazel_worker/**'
10+
711
'package:benchmark_harness':
812
- changed-files:
913
- any-glob-to-any-file: 'pkgs/benchmark_harness/**'
@@ -12,14 +16,26 @@
1216
- changed-files:
1317
- any-glob-to-any-file: 'pkgs/boolean_selector/**'
1418

19+
'package:browser_launcher':
20+
- changed-files:
21+
- any-glob-to-any-file: 'pkgs/browser_launcher/**'
22+
1523
'package:cli_config':
1624
- changed-files:
1725
- any-glob-to-any-file: 'pkgs/cli_config/**'
1826

27+
'package:clock':
28+
- changed-files:
29+
- any-glob-to-any-file: 'pkgs/clock/**'
30+
1931
'package:coverage':
2032
- changed-files:
2133
- any-glob-to-any-file: 'pkgs/coverage/**'
2234

35+
'package:csslib':
36+
- changed-files:
37+
- any-glob-to-any-file: 'pkgs/csslib/**'
38+
2339
'package:extension_discovery':
2440
- changed-files:
2541
- any-glob-to-any-file: 'pkgs/extension_discovery/**'
@@ -36,6 +52,10 @@
3652
- changed-files:
3753
- any-glob-to-any-file: 'pkgs/graphs/**'
3854

55+
'package:json_rpc_2':
56+
- changed-files:
57+
- any-glob-to-any-file: 'pkgs/json_rpc_2/**'
58+
3959
'package:mime':
4060
- changed-files:
4161
- any-glob-to-any-file: 'pkgs/mime/**'
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: package:bazel_worker
2+
3+
on:
4+
# Run on PRs and pushes to the default branch.
5+
push:
6+
branches: [ main ]
7+
paths:
8+
- '.github/workflows/bazel_worker.yml'
9+
- 'pkgs/bazel_worker/**'
10+
pull_request:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/bazel_worker.yml'
14+
- 'pkgs/bazel_worker/**'
15+
schedule:
16+
- cron: "0 0 * * 0"
17+
18+
env:
19+
PUB_ENVIRONMENT: bot.github
20+
21+
22+
defaults:
23+
run:
24+
working-directory: pkgs/bazel_worker/
25+
26+
jobs:
27+
# Run the test script against the latest dev build.
28+
test:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
sdk: [3.1.0, dev]
34+
steps:
35+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
36+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
37+
with:
38+
sdk: ${{ matrix.sdk }}
39+
- run: "dart format --output=none --set-exit-if-changed ."
40+
- name: Test
41+
run: ./tool/travis.sh
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: package:browser_launcher
2+
3+
on:
4+
# Run on PRs and pushes to the default branch.
5+
push:
6+
branches: [ main ]
7+
paths:
8+
- '.github/workflows/browser_launcher.yml'
9+
- 'pkgs/browser_launcher/**'
10+
pull_request:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/browser_launcher.yml'
14+
- 'pkgs/browser_launcher/**'
15+
schedule:
16+
- cron: "0 0 * * 0"
17+
18+
env:
19+
PUB_ENVIRONMENT: bot.github
20+
DISPLAY: ':99'
21+
22+
defaults:
23+
run:
24+
working-directory: pkgs/browser_launcher/
25+
26+
jobs:
27+
test:
28+
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
sdk: [3.4, dev]
32+
steps:
33+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
34+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
35+
with:
36+
sdk: ${{ matrix.sdk }}
37+
38+
- run: dart pub get
39+
40+
- run: dart format --output=none --set-exit-if-changed .
41+
- run: dart analyze --fatal-infos
42+
43+
- name: Run Xvfb
44+
run: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
45+
46+
- run: dart test

.github/workflows/clock.yaml

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

.github/workflows/csslib.yaml

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

0 commit comments

Comments
 (0)