Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix names of package CI scripts #1962

Merged
merged 7 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/bazel_worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/bazel_worker.yml'
- '.github/workflows/bazel_worker.yaml'
- 'pkgs/bazel_worker/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/bazel_worker.yml'
- '.github/workflows/bazel_worker.yaml'
- 'pkgs/bazel_worker/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/benchmark_harness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/benchmark_harness.yml'
- '.github/workflows/benchmark_harness.yaml'
- 'pkgs/benchmark_harness/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/benchmark_harness.yml'
- '.github/workflows/benchmark_harness.yaml'
- 'pkgs/benchmark_harness/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/boolean_selector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/boolean_selector.yml'
- '.github/workflows/boolean_selector.yaml'
- 'pkgs/boolean_selector/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/boolean_selector.yml'
- '.github/workflows/boolean_selector.yaml'
- 'pkgs/boolean_selector/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/browser_launcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/browser_launcher.yml'
- '.github/workflows/browser_launcher.yaml'
- 'pkgs/browser_launcher/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/browser_launcher.yml'
- '.github/workflows/browser_launcher.yaml'
- 'pkgs/browser_launcher/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ on:
schedule:
- cron: "0 0 * * 0" # weekly

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

jobs:
build_linux:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/cli_config
strategy:
matrix:
sdk: [stable, dev] # {pkgs.versions}
Expand Down Expand Up @@ -58,9 +59,6 @@ jobs:

build_windows:
runs-on: windows-latest
defaults:
run:
working-directory: pkgs/cli_config
strategy:
matrix:
sdk: [stable, dev] # {pkgs.versions}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cli_util.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/cli_util.yml'
- '.github/workflows/cli_util.yaml'
- 'pkgs/cli_util/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/cli_util.yml'
- '.github/workflows/cli_util.yaml'
- 'pkgs/cli_util/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code_builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/code_builder.yml'
- '.github/workflows/code_builder.yaml'
- 'pkgs/code_builder/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/code_builder.yml'
- '.github/workflows/code_builder.yaml'
- 'pkgs/code_builder/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Dart CI
name: package:coverage

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/coverage.yml'
- '.github/workflows/coverage.yaml'
- 'pkgs/coverage/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/coverage.yml'
- '.github/workflows/coverage.yaml'
- 'pkgs/coverage/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/csslib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/csslib.yml'
- '.github/workflows/csslib.yaml'
- 'pkgs/csslib/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/csslib.yml'
- '.github/workflows/csslib.yaml'
- 'pkgs/csslib/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ permissions: read-all
on:
pull_request:
paths:
- '.github/workflows/unified_analytics.yml'
- '.github/workflows/extension_discovery.yaml'
- 'pkgs/extension_discovery/**'
push:
branches: [ main ]
paths:
- '.github/workflows/extension_discovery.yml'
- '.github/workflows/extension_discovery.yaml'
- 'pkgs/extension_discovery/**'
schedule:
- cron: '0 0 * * 0' # weekly
Expand Down
34 changes: 11 additions & 23 deletions .github/workflows/file.yml → .github/workflows/file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,35 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/file.yml'
- '.github/workflows/file.yaml'
- 'pkgs/file/**'
- 'pkgs/file_testing/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/file.yml'
- '.github/workflows/file.yaml'
- 'pkgs/file/**'
- 'pkgs/file_testing/**'
schedule:
- cron: "0 0 * * 0"

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

jobs:
correctness:
runs-on: ubuntu-latest
strategy:
matrix:
package: [file, file_testing]

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: dev

- name: Install ${{ matrix.package }} dependencies
working-directory: pkgs/${{ matrix.package }}
run: dart pub get

- name: Verify formatting in ${{ matrix.package }}
working-directory: pkgs/${{ matrix.package }}
run: dart format --output=none --set-exit-if-changed .

- name: Analyze package ${{ matrix.package }} source
working-directory: pkgs/${{ matrix.package }}
run: dart analyze --fatal-infos
- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze --fatal-infos

test:
runs-on: ${{ matrix.os }}
Expand All @@ -57,10 +50,5 @@ jobs:
with:
sdk: ${{ matrix.sdk }}

- name: Install ${{ matrix.package }} dependencies
working-directory: pkgs/${{ matrix.package }}
run: dart pub get

- name: Run ${{ matrix.package }} Tests
working-directory: pkgs/${{ matrix.package }}
run: dart pub run test -j1
- run: dart pub get
- run: dart pub run test -j1
36 changes: 36 additions & 0 deletions .github/workflows/file_testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: package:file_testing
permissions: read-all

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

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

jobs:
correctness:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: dev

- run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
- run: dart analyze --fatal-infos
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
# Run CI on all PRs (against any branch) and on pushes to the main branch.
pull_request:
paths:
- '.github/workflows/graphs.yml'
- '.github/workflows/graphs.yaml'
- 'pkgs/graphs/**'
push:
branches: [ main ]
paths:
- '.github/workflows/graphs.yml'
- '.github/workflows/graphs.yaml'
- 'pkgs/graphs/**'
schedule:
- cron: '0 0 * * 0' # weekly
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/html.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/html.yml'
- '.github/workflows/html.yaml'
- 'pkgs/html/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/html.yml'
- '.github/workflows/html.yaml'
- 'pkgs/html/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/io.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/io.yml'
- '.github/workflows/io.yaml'
- 'pkgs/io/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/io.yml'
- '.github/workflows/io.yaml'
- 'pkgs/io/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/json_rpc_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/json_rpc_2.yml'
- '.github/workflows/json_rpc_2.yaml'
- 'pkgs/json_rpc_2/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/json_rpc_2.yml'
- '.github/workflows/json_rpc_2.yaml'
- 'pkgs/json_rpc_2/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mime.yml → .github/workflows/mime.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dart CI
name: package:mime

on:
schedule:
Expand All @@ -7,12 +7,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/mime.yml'
- '.github/workflows/mime.yaml'
- 'pkgs/mime/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/mime.yml'
- '.github/workflows/mime.yaml'
- 'pkgs/mime/**'

jobs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Dart CI
name: package:oauth2

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/oauth2.yml'
- '.github/workflows/oauth2.yaml'
- 'pkgs/oauth2/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/oauth2.yml'
- '.github/workflows/oauth2.yaml'
- 'pkgs/oauth2/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
push:
branches: [ main ]
paths:
- '.github/workflows/package_config.yml'
- '.github/workflows/package_config.yaml'
- 'pkgs/package_config/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/package_config.yml'
- '.github/workflows/package_config.yaml'
- 'pkgs/package_config/**'
schedule:
- cron: "0 0 * * 0"
Expand Down
Loading
Loading