Skip to content
New issue

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

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

Already on GitHub? # to your account

normalize the workflow files #2013

Merged
merged 1 commit into from
Feb 6, 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
5 changes: 1 addition & 4 deletions .github/workflows/bazel_worker.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:bazel_worker
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,10 +16,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/bazel_worker/
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/benchmark_harness.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:benchmark_harness
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,9 +16,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github

defaults:
run:
working-directory: pkgs/benchmark_harness/
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/boolean_selector.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:boolean_selector
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,10 +16,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/boolean_selector/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/browser_launcher.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:browser_launcher
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -16,7 +17,6 @@ on:
- cron: "0 0 * * 0"

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

defaults:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cli_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [stable, dev] # {pkgs.versions}
sdk: [stable, dev]
include:
- sdk: stable
run-tests: true
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
sdk: [stable, dev] # {pkgs.versions}
sdk: [stable, dev]
include:
- sdk: stable
run-tests: true
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/cli_util.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:cli_util
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,10 +16,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/cli_util/
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/clock.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:clock
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,10 +16,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/clock/
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/code_builder.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:code_builder
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,10 +16,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/code_builder/
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:coverage
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,9 +16,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/csslib.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:csslib
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,10 +16,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/csslib/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy_pages.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Publish the GitHub Pages site for this repo.

name: "Deploy Pages"
permissions: read-all

on:
# Run on pushes to the default branch.
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/extension_discovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ on:
schedule:
- cron: '0 0 * * 0' # weekly

defaults:
run:
working-directory: pkgs/extension_discovery

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/extension_discovery
strategy:
fail-fast: false
matrix:
sdk: [stable, dev] # {pkgs.versions}
sdk: [stable, dev]
include:
- sdk: stable
check-formatting: true
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/glob.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: package:glob

permissions: read-all

on:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/graphs.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: package:graphs

permissions: read-all

on:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/health.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Health
permissions: read-all

on:
pull_request:
branches: [ main ]
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/html.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/html/
Expand All @@ -28,11 +24,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [stable, dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: dev
sdk: ${{ matrix.sdk }}
- id: install
run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/io.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:io
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,15 +16,10 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


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


jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev and stable.
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/json_rpc_2.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:json_rpc_2
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,10 +16,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/json_rpc_2/
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/markdown.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:markdown
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,9 +16,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github

defaults:
run:
working-directory: pkgs/markdown/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/markdown_crash_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# to see if any can provoke a crash.

name: "package:markdown: crash tests"
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/markdown_flutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github

jobs:
smoke-test:
runs-on: ubuntu-latest
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/mime.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:mime
permissions: read-all

on:
schedule:
Expand All @@ -15,13 +16,13 @@ on:
- '.github/workflows/mime.yaml'
- 'pkgs/mime/**'

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

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/mime/

strategy:
matrix:
os: [ubuntu-latest]
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@

name: No Response

# All permissions not specified are set to 'none'.
permissions:
issues: write
pull-requests: write

# Run as a daily cron.
on:
schedule:
# Every day at 8am
- cron: '0 8 * * *'

# All permissions not specified are set to 'none'.
permissions:
issues: write
pull-requests: write

jobs:
no-response:
runs-on: ubuntu-latest
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/oauth2.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: package:oauth2
permissions: read-all

on:
# Run on PRs and pushes to the default branch.
Expand All @@ -15,17 +16,15 @@ on:
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github
defaults:
run:
working-directory: pkgs/oauth2/

jobs:
# Check code formatting and lints against Dart dev, check analyzer warnings
# against the oldest supported SDK.
analyze:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/oauth2/
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -54,9 +53,6 @@ jobs:
test:
needs: analyze
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: pkgs/oauth2/
strategy:
fail-fast: false
matrix:
Expand Down
Loading
Loading