Skip to content

Commit f7f43a6

Browse files
devversioncrisbeto
authored andcommitted
refactor: re-format all files after recent dev-infra update
YAML files are now formatted by default, and it looks like some spec files also need to be reformatted after a Prettier update.
1 parent ad6ef95 commit f7f43a6

File tree

115 files changed

+2481
-2982
lines changed

Some content is hidden

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

115 files changed

+2481
-2982
lines changed

.circleci/config.yml

Lines changed: 47 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -40,33 +40,33 @@ var_8: &save_cache
4040
save_cache:
4141
key: *cache_key
4242
paths:
43-
- "node_modules"
44-
- "~/.cache/bazelisk"
45-
- "~/bazel_repository_cache"
43+
- 'node_modules'
44+
- '~/.cache/bazelisk'
45+
- '~/bazel_repository_cache'
4646

4747
# Decryption token that is used to decode the GCP credentials file in ".circleci/gcp_token".
48-
var_9: &gcp_decrypt_token "angular"
48+
var_9: &gcp_decrypt_token 'angular'
4949

5050
# Job step that ensures that the node module dependencies are installed and up-to-date. We use
5151
# Yarn with the frozen lockfile option in order to make sure that lock file and package.json are
5252
# in sync. Unlike in Travis, we don't need to manually purge the node modules if stale because
5353
# CircleCI automatically discards the cache if the checksum of the lock file has changed.
5454
var_10: &yarn_install
5555
run:
56-
name: "Installing project dependencies"
56+
name: 'Installing project dependencies'
5757
command: yarn install --frozen-lockfile --non-interactive
5858

5959
# Installs all dependencies but does not enforce a frozen lockfile. Helpful when
6060
# the "package.json" is updated as part of a CI job. e.g. when setting up snapshots.
6161
var_11: &yarn_install_loose_lockfile
6262
run:
63-
name: "Installing project dependencies"
63+
name: 'Installing project dependencies'
6464
command: yarn install --non-interactive
6565

6666
# Sets up the Bazel config which is specific for CircleCI builds.
6767
var_12: &setup_bazel_ci_config
6868
run:
69-
name: "Setting up Bazel configuration for CI"
69+
name: 'Setting up Bazel configuration for CI'
7070
# Note: We add the remote config flag to the user bazelrc file that is not tracked
7171
# by Git. This is necessary to avoid stamping builds with `.with-local-changes`.
7272
command: echo "import %workspace%/.circleci/bazel.rc" >> ./.bazelrc.user
@@ -95,46 +95,46 @@ var_14: &publish_branches_filter
9595
var_15: &ignore_presubmit_branch_filter
9696
branches:
9797
ignore:
98-
- "_presubmit"
98+
- '_presubmit'
9999

100100
# Runs a script that sets up the Bazel remote execution. This will be used by jobs that run
101101
# Bazel primarily and should benefit from remote caching and execution.
102102
var_16: &setup_bazel_remote_execution
103103
run:
104-
name: "Setup bazel RBE remote execution"
104+
name: 'Setup bazel RBE remote execution'
105105
command: ./scripts/bazel/setup-remote-execution.sh
106106

107107
# Sets up the bazel binary globally. We don't want to access bazel through Yarn and NodeJS
108108
# because it could mean that the Bazel child process only has access to limited memory.
109109
var_17: &setup_bazel_binary
110110
run:
111-
name: "Setting up global Bazel binary"
111+
name: 'Setting up global Bazel binary'
112112
command: ./scripts/circleci/setup_bazel_binary.sh
113113

114114
# Sets up the Angular snapshot builds.
115115
var_18: &setup_snapshot_builds
116116
run:
117-
name: "Setting up Angular snapshot builds"
117+
name: 'Setting up Angular snapshot builds'
118118
command: node ./scripts/circleci/setup-angular-snapshots.js master
119119

120120
# Filter which ensures that jobs only run for pull requests.
121121
var_19: &only_on_pull_requests_filter
122122
branches:
123-
only:
124-
- /pull\/\d+/
123+
only:
124+
- /pull\/\d+/
125125

126126
# Anchor for a step that notifies Slack when preceding steps failed.
127127
var_20: &slack_notify_on_failure
128128
run:
129-
name: "Notifying team about job failure"
129+
name: 'Notifying team about job failure'
130130
when: on_fail
131131
command: node ./scripts/circleci/notify-slack-job-failure.js
132132

133133
# Branch filter that only matches the main branch.
134134
var_21: &only_main_branch_filter
135135
branches:
136-
only:
137-
- master
136+
only:
137+
- master
138138

139139
# -----------------------------
140140
# Container version of CircleCI
@@ -150,7 +150,6 @@ orbs:
150150
# push conflicts.
151151
queue: eddiewebb/queue@1.5.0
152152

153-
154153
commands:
155154
checkout_and_rebase:
156155
description: Checkout and rebase the repository
@@ -206,15 +205,15 @@ jobs:
206205
environment:
207206
GCP_DECRYPT_TOKEN: *gcp_decrypt_token
208207
steps:
209-
- checkout_and_rebase
210-
- *restore_cache
211-
- *setup_bazel_ci_config
212-
- *setup_bazel_remote_execution
213-
- *yarn_install
214-
- *setup_bazel_binary
208+
- checkout_and_rebase
209+
- *restore_cache
210+
- *setup_bazel_ci_config
211+
- *setup_bazel_remote_execution
212+
- *yarn_install
213+
- *setup_bazel_binary
215214

216-
- run: bazel test tools/public_api_guard/...
217-
- *slack_notify_on_failure
215+
- run: bazel test tools/public_api_guard/...
216+
- *slack_notify_on_failure
218217

219218
# -----------------------------------------------------------------
220219
# Job that runs the e2e tests with Protractor and Chromium headless
@@ -265,8 +264,8 @@ jobs:
265264
<<: *job_defaults
266265
resource_class: xlarge
267266
environment:
268-
BROWSER_STACK_USERNAME: "angularteam1"
269-
BROWSER_STACK_ACCESS_KEY: "CaXMeMHD9pr5PHg8N7Jq"
267+
BROWSER_STACK_USERNAME: 'angularteam1'
268+
BROWSER_STACK_ACCESS_KEY: 'CaXMeMHD9pr5PHg8N7Jq'
270269
steps:
271270
- checkout_and_rebase
272271
- *restore_cache
@@ -284,19 +283,19 @@ jobs:
284283
<<: *job_defaults
285284
resource_class: xlarge
286285
environment:
287-
SAUCE_USERNAME: "angular-components"
288-
SAUCE_ACCESS_KEY: "63348201a846-eeb9-3ee4-300f-ea990b8a"
286+
SAUCE_USERNAME: 'angular-components'
287+
SAUCE_ACCESS_KEY: '63348201a846-eeb9-3ee4-300f-ea990b8a'
289288
# Note: This number should not be too high because otherwise we might run into
290289
# a rate limit exception.
291290
KARMA_PARALLEL_BROWSERS: 2
292291
steps:
293-
- checkout_and_rebase
294-
- *restore_cache
295-
- *setup_bazel_ci_config
296-
- *yarn_install
292+
- checkout_and_rebase
293+
- *restore_cache
294+
- *setup_bazel_ci_config
295+
- *yarn_install
297296

298-
- run: ./scripts/circleci/run-saucelabs-tests.sh
299-
- *slack_notify_on_failure
297+
- run: ./scripts/circleci/run-saucelabs-tests.sh
298+
- *slack_notify_on_failure
300299

301300
# ----------------------------------
302301
# Lint job.
@@ -374,7 +373,7 @@ jobs:
374373
- persist_to_workspace:
375374
root: dist
376375
paths:
377-
- "releases/**/*"
376+
- 'releases/**/*'
378377
- *slack_notify_on_failure
379378

380379
upload_release_packages:
@@ -414,7 +413,7 @@ jobs:
414413

415414
# ----------------------------------------
416415
# Job that monitors the docs site, ensuring
417-
# the docs site is online and works as expected.
416+
# the docs site is online and works as expected.
418417
# ----------------------------------------
419418
monitor_docs_site:
420419
docker:
@@ -463,7 +462,7 @@ jobs:
463462
# completes/starts, and this will improve stability of the queue step. See source:
464463
# https://github.com/eddiewebb/circleci-queue/commit/5d42add5bbcff5e8ac7fe189448a61fea98b0839.
465464
- queue/until_front_of_line:
466-
confidence: "2"
465+
confidence: '2'
467466

468467
- run: ./scripts/circleci/publish-snapshots.sh
469468
- *slack_notify_on_failure
@@ -477,16 +476,16 @@ jobs:
477476
environment:
478477
GCP_DECRYPT_TOKEN: *gcp_decrypt_token
479478
steps:
480-
- checkout_and_rebase
481-
- *restore_cache
482-
- *setup_bazel_ci_config
483-
- *setup_bazel_remote_execution
484-
- *setup_snapshot_builds
485-
- *yarn_install_loose_lockfile
486-
- *setup_bazel_binary
479+
- checkout_and_rebase
480+
- *restore_cache
481+
- *setup_bazel_ci_config
482+
- *setup_bazel_remote_execution
483+
- *setup_snapshot_builds
484+
- *yarn_install_loose_lockfile
485+
- *setup_bazel_binary
487486

488-
- run: bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
489-
- *slack_notify_on_failure
487+
- run: bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
488+
- *slack_notify_on_failure
490489

491490
# ----------------------------------------------------------------------------
492491
# Job that runs all Bazel integration tests.
@@ -665,7 +664,7 @@ workflows:
665664

666665
triggers:
667666
- schedule:
668-
cron: "0 * * * *"
667+
cron: '0 * * * *'
669668
filters:
670669
branches:
671670
only:

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug Report
22
description: Report a bug in Angular Material or the CDK
3-
title: "bug(COMPONENT): TITLE"
4-
labels: ["needs triage"]
3+
title: 'bug(COMPONENT): TITLE'
4+
labels: ['needs triage']
55
body:
66
- type: checkboxes
77
id: is-regression
@@ -34,7 +34,7 @@ body:
3434
value: |
3535
Steps to reproduce:
3636
1.
37-
2.
37+
2.
3838
validations:
3939
required: true
4040
- type: textarea

.github/ISSUE_TEMPLATE/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Documentation
22
description: Suggest an improvement to our documentation at material.angular.io
3-
title: "docs-bug(COMPONENT): TITLE"
4-
labels: ["docs", "needs triage"]
3+
title: 'docs-bug(COMPONENT): TITLE'
4+
labels: ['docs', 'needs triage']
55
body:
66
- type: textarea
77
id: description

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature
22
description: Propose a new feature for Angular Material or the CDK
3-
title: "feat(COMPONENT): TITLE"
4-
labels: ["feature", "needs triage"]
3+
title: 'feat(COMPONENT): TITLE'
4+
labels: ['feature', 'needs triage']
55
body:
66
- type: textarea
77
id: description

.github/ISSUE_TEMPLATE/troubleshooting.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Troubleshooting
22
description: Request for help on an issue you are facing with Angular Material or the CDK
3-
title: "help(COMPONENT): TITLE"
4-
labels: ["troubleshooting", "needs triage"]
3+
title: 'help(COMPONENT): TITLE'
4+
labels: ['troubleshooting', 'needs triage']
55
body:
66
- type: markdown
77
attributes:
@@ -38,7 +38,7 @@ body:
3838
value: |
3939
Steps to reproduce:
4040
1.
41-
2.
41+
2.
4242
validations:
4343
required: true
4444
- type: textarea

.github/actions/yarn-install/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: "Installing Yarn dependencies"
2-
description: "Installs the dependencies using Yarn"
1+
name: 'Installing Yarn dependencies'
2+
description: 'Installs the dependencies using Yarn'
33

44
runs:
5-
using: "composite"
5+
using: 'composite'
66
steps:
77
- uses: actions/cache@v2
88
with:

.github/angular-robot.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ size:
77
disabled: true
88
# Name of the status that will be responsible for providing
99
# artifacts that will be measured by the robot.
10-
circleCiStatusName: "ci/circleci: build_release_packages"
10+
circleCiStatusName: 'ci/circleci: build_release_packages'
1111
# Byte value of maximum allowed change in size
1212
maxSizeIncrease: 10000
1313

@@ -18,11 +18,11 @@ merge:
1818
# set to true to disable
1919
disabled: false
2020
# the name of the status
21-
context: "ci/angular: merge status"
21+
context: 'ci/angular: merge status'
2222
# text to show when all checks pass
23-
successText: "All checks passed!"
23+
successText: 'All checks passed!'
2424
# text to show when some checks are failing
25-
failureText: "The following checks are failing:"
25+
failureText: 'The following checks are failing:'
2626

2727
# the g3 status will be added to your pull requests if they include files that match the patterns
2828
g3Status:
@@ -33,7 +33,7 @@ merge:
3333
mergeConflictComment: "Hi @{{PRAuthor}}! This PR has merge conflicts due to recent upstream merges.\nPlease help to unblock it by resolving these conflicts. Thanks!"
3434

3535
# label to monitor
36-
mergeLabel: "pr: merge ready"
36+
mergeLabel: 'pr: merge ready'
3737

3838
# list of checks that will determine if the merge label can be added
3939
checks:
@@ -43,23 +43,23 @@ merge:
4343
requireReviews: false
4444
# list of labels that a PR needs to have, checked with a regexp (e.g. "PR target:" will work for the label "PR target: master")
4545
requiredLabels:
46-
- "target: *"
46+
- 'target: *'
4747

4848
# list of labels that a PR shouldn't have, checked after the required labels with a regexp
4949
forbiddenLabels:
50-
- "blocked"
51-
- "pr: blocked"
52-
- "pr: needs*"
53-
- "presubmit failures"
50+
- 'blocked'
51+
- 'pr: blocked'
52+
- 'pr: needs*'
53+
- 'presubmit failures'
5454

5555
# list of PR statuses that need to be successful
5656
requiredStatuses:
57-
- "ci/circleci: lint"
58-
- "ci/circleci: bazel_build"
59-
- "ci/circleci: tests_browsers"
60-
- "ci/circleci: tests_browserstack"
61-
- "ci/circleci: tests_saucelabs"
62-
- "ci/circleci: build_release_packages"
57+
- 'ci/circleci: lint'
58+
- 'ci/circleci: bazel_build'
59+
- 'ci/circleci: tests_browsers'
60+
- 'ci/circleci: tests_browserstack'
61+
- 'ci/circleci: tests_saucelabs'
62+
- 'ci/circleci: build_release_packages'
6363

6464
# the comment that will be added when the merge label is added despite failing checks, leave empty or set to false to disable
6565
# {{MERGE_LABEL}} will be replaced by the value of the mergeLabel option

.github/workflows/dev-infra.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
labels:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.0.0
11+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.0.0
1212
- uses: angular/dev-infra/github-actions/commit-message-based-labels@2e2d1a6beeb26b0cc61c70f157f1dc073cdcf235
1313
with:
1414
angular-robot-key: ${{ secrets.ANGULAR_ROBOT_PRIVATE_KEY }}

0 commit comments

Comments
 (0)