Skip to content

Commit 750b4ad

Browse files
authored
normalize the workflow files (#2013)
1 parent 1e94649 commit 750b4ad

Some content is hidden

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

45 files changed

+68
-154
lines changed

.github/workflows/bazel_worker.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:bazel_worker
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,10 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
21-
2219
defaults:
2320
run:
2421
working-directory: pkgs/bazel_worker/

.github/workflows/benchmark_harness.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:benchmark_harness
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,9 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
2119
defaults:
2220
run:
2321
working-directory: pkgs/benchmark_harness/

.github/workflows/boolean_selector.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:boolean_selector
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,10 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
21-
2219
defaults:
2320
run:
2421
working-directory: pkgs/boolean_selector/

.github/workflows/browser_launcher.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:browser_launcher
2+
permissions: read-all
23

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

1819
env:
19-
PUB_ENVIRONMENT: bot.github
2020
DISPLAY: ':99'
2121

2222
defaults:

.github/workflows/cli_config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
sdk: [stable, dev] # {pkgs.versions}
26+
sdk: [stable, dev]
2727
include:
2828
- sdk: stable
2929
run-tests: true
@@ -61,7 +61,7 @@ jobs:
6161
runs-on: windows-latest
6262
strategy:
6363
matrix:
64-
sdk: [stable, dev] # {pkgs.versions}
64+
sdk: [stable, dev]
6565
include:
6666
- sdk: stable
6767
run-tests: true

.github/workflows/cli_util.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:cli_util
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,10 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
21-
2219
defaults:
2320
run:
2421
working-directory: pkgs/cli_util/

.github/workflows/clock.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:clock
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,10 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
21-
2219
defaults:
2320
run:
2421
working-directory: pkgs/clock/

.github/workflows/code_builder.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:code_builder
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,10 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
21-
2219
defaults:
2320
run:
2421
working-directory: pkgs/code_builder/

.github/workflows/coverage.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:coverage
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,9 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
2119
jobs:
2220
# Check code formatting and static analysis on a single OS (linux)
2321
# against Dart dev.

.github/workflows/csslib.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:csslib
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,10 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
21-
2219
defaults:
2320
run:
2421
working-directory: pkgs/csslib/

.github/workflows/deploy_pages.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Publish the GitHub Pages site for this repo.
22

33
name: "Deploy Pages"
4+
permissions: read-all
45

56
on:
67
# Run on pushes to the default branch.

.github/workflows/extension_discovery.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ on:
1414
schedule:
1515
- cron: '0 0 * * 0' # weekly
1616

17+
defaults:
18+
run:
19+
working-directory: pkgs/extension_discovery
20+
1721
jobs:
1822
build:
1923
runs-on: ubuntu-latest
20-
defaults:
21-
run:
22-
working-directory: pkgs/extension_discovery
2324
strategy:
2425
fail-fast: false
2526
matrix:
26-
sdk: [stable, dev] # {pkgs.versions}
27+
sdk: [stable, dev]
2728
include:
2829
- sdk: stable
2930
check-formatting: true

.github/workflows/glob.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: package:glob
2-
32
permissions: read-all
43

54
on:

.github/workflows/graphs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: package:graphs
2-
32
permissions: read-all
43

54
on:

.github/workflows/health.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Health
2+
permissions: read-all
3+
24
on:
35
pull_request:
46
branches: [ main ]

.github/workflows/html.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ on:
1515
schedule:
1616
- cron: "0 0 * * 0"
1717

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
21-
2218
defaults:
2319
run:
2420
working-directory: pkgs/html/
@@ -28,11 +24,13 @@ jobs:
2824
runs-on: ubuntu-latest
2925
strategy:
3026
fail-fast: false
27+
matrix:
28+
sdk: [stable, dev]
3129
steps:
3230
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3331
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
3432
with:
35-
sdk: dev
33+
sdk: ${{ matrix.sdk }}
3634
- id: install
3735
run: dart pub get
3836
- run: dart format --output=none --set-exit-if-changed .

.github/workflows/io.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:io
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,15 +16,10 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
21-
2219
defaults:
2320
run:
2421
working-directory: pkgs/io/
2522

26-
2723
jobs:
2824
# Check code formatting and static analysis on a single OS (linux)
2925
# against Dart dev and stable.

.github/workflows/json_rpc_2.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:json_rpc_2
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,10 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
21-
2219
defaults:
2320
run:
2421
working-directory: pkgs/json_rpc_2/

.github/workflows/markdown.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:markdown
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,9 +16,6 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
20-
2119
defaults:
2220
run:
2321
working-directory: pkgs/markdown/

.github/workflows/markdown_crash_test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# to see if any can provoke a crash.
33

44
name: "package:markdown: crash tests"
5+
permissions: read-all
56

67
on:
78
# Run on PRs and pushes to the default branch.

.github/workflows/markdown_flutter.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ on:
1717
schedule:
1818
- cron: "0 0 * * 0"
1919

20-
env:
21-
PUB_ENVIRONMENT: bot.github
22-
2320
jobs:
2421
smoke-test:
2522
runs-on: ubuntu-latest

.github/workflows/mime.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:mime
2+
permissions: read-all
23

34
on:
45
schedule:
@@ -15,13 +16,13 @@ on:
1516
- '.github/workflows/mime.yaml'
1617
- 'pkgs/mime/**'
1718

19+
defaults:
20+
run:
21+
working-directory: pkgs/mime/
22+
1823
jobs:
1924
build:
2025
runs-on: ubuntu-latest
21-
defaults:
22-
run:
23-
working-directory: pkgs/mime/
24-
2526
strategy:
2627
matrix:
2728
os: [ubuntu-latest]

.github/workflows/no-response.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
name: No Response
55

6+
# All permissions not specified are set to 'none'.
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
611
# Run as a daily cron.
712
on:
813
schedule:
914
# Every day at 8am
1015
- cron: '0 8 * * *'
1116

12-
# All permissions not specified are set to 'none'.
13-
permissions:
14-
issues: write
15-
pull-requests: write
16-
1717
jobs:
1818
no-response:
1919
runs-on: ubuntu-latest

.github/workflows/oauth2.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: package:oauth2
2+
permissions: read-all
23

34
on:
45
# Run on PRs and pushes to the default branch.
@@ -15,17 +16,15 @@ on:
1516
schedule:
1617
- cron: "0 0 * * 0"
1718

18-
env:
19-
PUB_ENVIRONMENT: bot.github
19+
defaults:
20+
run:
21+
working-directory: pkgs/oauth2/
2022

2123
jobs:
2224
# Check code formatting and lints against Dart dev, check analyzer warnings
2325
# against the oldest supported SDK.
2426
analyze:
2527
runs-on: ubuntu-latest
26-
defaults:
27-
run:
28-
working-directory: pkgs/oauth2/
2928
strategy:
3029
fail-fast: false
3130
matrix:
@@ -54,9 +53,6 @@ jobs:
5453
test:
5554
needs: analyze
5655
runs-on: ${{ matrix.os }}
57-
defaults:
58-
run:
59-
working-directory: pkgs/oauth2/
6056
strategy:
6157
fail-fast: false
6258
matrix:

0 commit comments

Comments
 (0)