Skip to content

Commit 4c8f3a7

Browse files
committed
Merge remote-tracking branch 'origin/master' into chore/upstream
# Conflicts: # match/lib/match/runner.rb # match/lib/match/spaceship_ensure.rb # match/spec/runner_spec.rb # sigh/lib/sigh/runner.rb
2 parents deeb763 + ebd6daf commit 4c8f3a7

File tree

277 files changed

+6901
-1528
lines changed

Some content is hidden

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

277 files changed

+6901
-1528
lines changed

Diff for: .circleci/config.yml

+47-29
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
version: 2.1
44
orbs:
5-
shellcheck: circleci/[email protected] # brew install shellcheck stopped working so using this
5+
shellcheck: circleci/[email protected] # brew install shellcheck stopped working so using this
6+
macos: circleci/macos@2
67

78
aliases:
89
- &important-branches
@@ -50,14 +51,6 @@ aliases:
5051
paths:
5152
- "~/.cache/rubocop_cache"
5253

53-
- &set_ruby
54-
run:
55-
name: Set Ruby version
56-
command: | # see https://circleci.com/docs/2.0/testing-ios/#using-ruby
57-
echo "ruby-${_RUBY_VERSION}" > ~/.ruby-version
58-
# https://circleci.com/docs/2.0/env-vars/#setting-an-environment-variable-in-a-shell-command
59-
echo 'chruby ruby-${_RUBY_VERSION}' >> $BASH_ENV
60-
6154
- &bundle_install
6255
run:
6356
name: bundle install
@@ -83,14 +76,14 @@ jobs:
8376
CIRCLE_TEST_REPORTS: '~/test-reports'
8477
LC_ALL: 'en_US.UTF-8'
8578
LANG: 'en_US.UTF-8'
86-
_RUBY_VERSION: << parameters.ruby_version >>
8779
shell: '/bin/bash --login -eo pipefail'
8880
steps:
8981
- *cache_restore_git
9082
- checkout
9183
- *cache_save_git
9284
- *cache_restore_bundler
93-
- *set_ruby
85+
- macos/switch-ruby:
86+
version: << parameters.ruby_version >>
9487
- run:
9588
name: debug | ruby version
9689
command: |
@@ -132,15 +125,17 @@ jobs:
132125

133126
tests_ubuntu:
134127
parameters:
135-
ruby_version:
128+
image:
129+
type: string
130+
ruby_version: # Used when restoring/saving bundler cache
136131
type: string
137132
environment:
138133
CIRCLE_TEST_REPORTS: '~/test-reports'
139134
LC_ALL: 'C.UTF-8'
140135
LANG: 'C.UTF-8'
141136
FASTLANE_ITUNES_TRANSPORTER_PATH: .bundle
142137
docker:
143-
- image: << parameters.ruby_version >>
138+
- image: << parameters.image >>
144139
steps:
145140
- *cache_restore_git
146141
- checkout
@@ -178,7 +173,8 @@ jobs:
178173
- checkout
179174
- *cache_save_git
180175
- *cache_restore_bundler
181-
- *set_ruby
176+
- macos/switch-ruby:
177+
version: << parameters.ruby_version >>
182178
- *bundle_install
183179
- *cache_save_bundler
184180
- run:
@@ -198,10 +194,12 @@ jobs:
198194

199195
validate_documentation:
200196
parameters:
201-
ruby_version:
197+
image:
198+
type: string
199+
ruby_version: # Used when restoring/saving bundler cache
202200
type: string
203201
docker:
204-
- image: << parameters.ruby_version >>
202+
- image: << parameters.image >>
205203
steps:
206204
- *cache_restore_git
207205
- checkout
@@ -219,10 +217,12 @@ jobs:
219217

220218
lint_source_code:
221219
parameters:
222-
ruby_version:
220+
image:
221+
type: string
222+
ruby_version: # Used when restoring/saving bundler cache
223223
type: string
224224
docker:
225-
- image: << parameters.ruby_version >>
225+
- image: << parameters.image >>
226226
steps:
227227
- *cache_restore_git
228228
- checkout
@@ -235,13 +235,13 @@ jobs:
235235

236236
modules_load_up_tests:
237237
parameters:
238-
ruby_version:
238+
image:
239239
type: string
240240
environment:
241241
LC_ALL: C.UTF-8
242242
LANG: C.UTF-8
243243
docker:
244-
- image: << parameters.ruby_version >>
244+
- image: << parameters.image >>
245245
shell: /bin/bash --login -eo pipefail
246246
steps:
247247
- *cache_restore_git
@@ -258,7 +258,7 @@ jobs:
258258

259259
workflows:
260260
version: 2
261-
build:
261+
"Run Tests & Checks": # Name of the workflow, which ends up displayed on GitHub's PR Check
262262
jobs:
263263
- tests_macos:
264264
name: 'Execute tests on macOS (Xcode 12.5.1, Ruby 2.6)'
@@ -285,26 +285,44 @@ workflows:
285285
- tests_macos:
286286
name: 'Execute tests on macOS (Xcode 14.3.1, Ruby 3.1)'
287287
xcode_version: '14.3.1'
288-
ruby_version: '3.1.4'
288+
ruby_version: '3.1'
289+
ruby_opt: -W:deprecated
290+
- tests_macos:
291+
name: 'Execute tests on macOS (Xcode 15.0.1, Ruby 3.1)'
292+
xcode_version: '15.0.1'
293+
ruby_version: '3.1'
294+
ruby_opt: -W:deprecated
295+
- tests_macos:
296+
name: 'Execute tests on macOS (Xcode 13.4.1, Ruby 3.1)'
297+
xcode_version: '13.4.1'
298+
ruby_version: '3.1'
299+
ruby_opt: -W:deprecated
300+
- tests_macos:
301+
name: 'Execute tests on macOS (Xcode 14.3.1, Ruby 3.2)'
302+
xcode_version: '14.3.1'
303+
ruby_version: '3.2'
289304
ruby_opt: -W:deprecated
290305
- tests_macos:
291-
name: 'Execute tests on macOS (Xcode 15.0.0, Ruby 3.1)'
292-
xcode_version: '15.0.0'
293-
ruby_version: '3.1.4'
306+
name: 'Execute tests on macOS (Xcode 15.0.1, Ruby 3.2)'
307+
xcode_version: '15.0.1'
308+
ruby_version: '3.2'
294309
ruby_opt: -W:deprecated
295310
- tests_ubuntu:
296311
name: 'Execute tests on Ubuntu'
297-
ruby_version: 'fastlanetools/ci:0.3.0'
312+
image: 'fastlanetools/ci:0.3.0'
313+
ruby_version: '2.6'
298314
- validate_fastlane_swift_generation:
299315
name: 'Validate Fastlane.swift generation'
300316
xcode_version: '12.5.1'
301317
ruby_version: '2.7'
302318
- validate_documentation:
303319
name: 'Validate Documentation'
304-
ruby_version: 'fastlanetools/ci:0.3.0'
320+
image: 'cimg/ruby:3.2.2'
321+
ruby_version: '3.2'
305322
- lint_source_code:
306323
name: 'Lint source code'
307-
ruby_version: 'cimg/ruby:2.6'
324+
image: 'cimg/ruby:2.6'
325+
ruby_version: '2.6'
308326
- modules_load_up_tests:
309327
name: 'Modules load up tests'
310-
ruby_version: 'cimg/ruby:2.6'
328+
image: 'cimg/ruby:2.6'

Diff for: .github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "bundler"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

Diff for: .github/workflows/issues.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
name: Processing issues
2-
on:
1+
---
2+
name: Process issues
3+
on:
34
issues:
4-
types: [opened]
5+
types:
6+
- opened
57

6-
jobs:
8+
jobs:
79
fastlane-env:
8-
name: fastlane env reminder
9-
runs-on: ubuntu-latest
10+
name: Remind user about posting their fastlane env
11+
runs-on: ubuntu-latest
1012
steps:
11-
- uses: actions/checkout@master
12-
- uses: fastlane/github-actions/fastlane-env-reminder@latest
13-
with:
14-
repo-token: "${{ secrets.BOT_GITHUB_TOKEN }}"
13+
- uses: actions/checkout@master
14+
- uses: fastlane/github-actions/fastlane-env-reminder@latest
15+
with:
16+
repo-token: '${{ secrets.BOT_GITHUB_TOKEN }}'

Diff for: .github/workflows/lock.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
# Locking closed, inactive issues and pull requests
2-
name: Locking issues and pull requests
1+
---
2+
name: Lock issues and pull requests
33
on:
44
schedule:
5-
- cron: "0 0 * * *"
5+
- cron: "0 0 * * *" # Every day at midnight
66

77
jobs:
88
lock:
9+
name: Lock closed and inactive issues and pull requests
910
runs-on: ubuntu-latest
1011
steps:
11-
- uses: fastlane/github-actions/lock@latest
12-
with:
13-
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
14-
days-before-lock: 60
12+
- uses: fastlane/github-actions/lock@latest
13+
with:
14+
repo-token: '${{ secrets.BOT_GITHUB_TOKEN }}'
15+
days-before-lock: 60

Diff for: .github/workflows/release.yml

+16-14
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
name: Processing release
2-
on:
1+
---
2+
name: Process release
3+
on:
34
release:
4-
types: [published]
5+
types:
6+
- published
57

6-
jobs:
7-
communicate-on-pull-request-released:
8-
name: communicate on pull request released
8+
jobs:
9+
announce-release-on-released-pull-requests:
10+
name: Announce release on released pull requests
911
runs-on: ubuntu-latest
1012
steps:
11-
- name: Git checkout
12-
uses: actions/checkout@master
13-
with:
14-
ref: refs/heads/master
15-
- name: Communicate on PR released
16-
uses: fastlane/github-actions/communicate-on-pull-request-released@latest
17-
with:
18-
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }}
13+
- name: Git checkout
14+
uses: actions/checkout@master
15+
with:
16+
ref: refs/heads/master
17+
- name: Announce release on released pull requests
18+
uses: fastlane/github-actions/communicate-on-pull-request-released@latest
19+
with:
20+
repo-token: '${{ secrets.BOT_GITHUB_TOKEN }}'

Diff for: .github/workflows/tags.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
---
2+
name: Deploy to Homebrew
13
on:
24
push:
3-
tags: 'v*'
5+
tags: 'v*' # Push events to tags matching v*
46

57
jobs:
68
homebrew:
79
name: Bump Homebrew formula
810
runs-on: ubuntu-latest
911
steps:
10-
- uses: mislav/bump-homebrew-formula-action@v1.4
11-
if: "!contains(github.ref, '-')" # skip prereleases
12+
- uses: mislav/bump-homebrew-formula-action@v3.1
13+
if: "!contains(github.ref, '-')" # Skip prereleases
1214
with:
1315
formula-name: fastlane
1416
env:
15-
COMMITTER_TOKEN: ${{ secrets.HOMEBREW_COMMITTER_TOKEN }}
17+
COMMITTER_TOKEN: '${{ secrets.HOMEBREW_COMMITTER_TOKEN }}'

Diff for: .rubocop.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Style/RedundantReturn:
202202
Style/IfUnlessModifier:
203203
Enabled: false
204204

205-
# and and or is okay
205+
# "and" and "or" are okay
206206
Style/AndOr:
207207
Enabled: true
208208
EnforcedStyle: conditionals
@@ -341,3 +341,12 @@ Style/MethodCallWithArgsParentheses:
341341
- 'context'
342342
- 'before'
343343
- 'after'
344+
345+
# Sorts the gems in the Gemfile alphabetically.
346+
Bundler/OrderedGems:
347+
Enabled: true
348+
TreatCommentsAsGroupSeparators: false
349+
350+
Gemspec/DevelopmentDependencies:
351+
Enabled: true
352+
EnforcedStyle: Gemfile

Diff for: .rubocop_todo.yml

-7
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 8
10-
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
11-
# SupportedStyles: Gemfile, gems.rb, gemspec
12-
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
13-
Gemspec/DevelopmentDependencies:
14-
Enabled: false
15-
169
# Offense count: 6
1710
# This cop supports safe autocorrection (--autocorrect).
1811
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.

Diff for: CONTRIBUTING.md

-13
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,6 @@ Some people might also use the [_fastlane_ tag on StackOverflow](https://stackov
2020
- You will need a Google account to sign the CLA when you make your first PR
2121
- For some more advanced tooling and debugging tips, check out [ToolsAndDebugging.md](ToolsAndDebugging.md)
2222

23-
### Google Contributor License Agreement (CLA)
24-
Upon your first pull request to _fastlane_, the [googlebot](https://github.com/googlebot) will ask you to sign the Google Contributor License Agreement. Once the CLA has been accepted, the PR will be available to merge and you will not be asked to sign it again unless your GitHub username or email address changes.
25-
26-
Contributions to this project must be accompanied by a Contributor License
27-
Agreement. You (or your employer) retain the copyright to your contribution;
28-
this simply gives us permission to use and redistribute your contributions as
29-
part of the project. Head over to <https://cla.developers.google.com/> to see
30-
your current agreements on file or to sign a new one.
31-
32-
You generally only need to submit a CLA once, so if you've already submitted one
33-
(even if it was for a different project), you probably don't need to do it
34-
again.
35-
3623
### New Actions
3724

3825
Please be aware that we don’t accept submissions for new actions at the moment. You can find more information about that [here][submit action].

0 commit comments

Comments
 (0)