Skip to content

Commit 06e7924

Browse files
authored
chore: Work around issue with old uri gem in ci (#17122)
1 parent 022aef8 commit 06e7924

6 files changed

Lines changed: 21 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
include:
1616
- os: ubuntu-latest
1717
ruby: "2.7"
18-
task: "--include-spec --include-yardoc --include-build"
18+
task: "--include-spec"
1919
- os: ubuntu-latest
2020
ruby: "3.0"
2121
task: "--include-spec"
@@ -24,12 +24,12 @@ jobs:
2424
task: "--include-spec"
2525
- os: ubuntu-latest
2626
ruby: "3.2"
27-
task: "--include-spec"
27+
task: "--include-spec --include-yardoc --include-build"
2828
- os: macos-latest
29-
ruby: "2.7"
29+
ruby: "3.2"
3030
task: "--include-spec"
3131
- os: windows-latest
32-
ruby: "2.7"
32+
ruby: "3.2"
3333
task: "--include-spec"
3434
fail-fast: false
3535
runs-on: ${{ matrix.os }}
@@ -41,6 +41,8 @@ jobs:
4141
with:
4242
ruby-version: "${{ matrix.ruby }}"
4343
- name: Install tools
44-
run: "gem install --no-document toys"
44+
run: |
45+
gem install --no-document toys
4546
- name: Test ${{ matrix.task }}
46-
run: toys ci -v --only ${{ matrix.task }} --github-event-name=${{ github.event_name }} --github-event-payload=${{ github.event_path }}
47+
run: |
48+
toys ci -v --only ${{ matrix.task }} --github-event-name=${{ github.event_name }} --github-event-payload=${{ github.event_path }}

.github/workflows/generate-updates.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
steps:
1717
- name: Checkout repo
1818
uses: actions/checkout@v2
19-
- name: Install Ruby 3.0
19+
- name: Install Ruby 3.2
2020
uses: ruby/setup-ruby@v1
2121
with:
22-
ruby-version: "3.0"
22+
ruby-version: "3.2"
2323
- name: Install tools
24-
run: "gem install --no-document toys"
24+
run: |
25+
gem install --no-document toys
2526
- name: execute
2627
run: |
2728
toys generate-updates -v --fork ${{ github.event.inputs.args }}

.github/workflows/release-please.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ jobs:
1919
steps:
2020
- name: Checkout repo
2121
uses: actions/checkout@v2
22-
- name: Install Ruby 3.0
22+
- name: Install Ruby 3.2
2323
uses: ruby/setup-ruby@v1
2424
with:
25-
ruby-version: "3.0"
25+
ruby-version: "3.2"
2626
- name: Install NodeJS 16.x
2727
uses: actions/setup-node@v2
2828
with:
2929
node-version: "16.x"
3030
- name: Install tools
31-
run: "gem install --no-document toys"
31+
run: |
32+
gem install --no-document toys
3233
- name: execute
3334
run: |
3435
toys release manifest -v \

.github/workflows/weekly-generate-updates.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
with:
1919
ruby-version: "3.0"
2020
- name: Install tools
21-
run: "gem install --no-document toys"
21+
run: |
22+
gem install --no-document toys
2223
- name: Execute
2324
run: |
2425
toys generate-updates -v --fork --all --clean

.toys/_nested.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# limitations under the License.
1414

1515
require "pathname"
16+
require "uri"
17+
1618
base_dir = Pathname.new context_directory
1719
cur_dir = Pathname.new Dir.getwd
1820
unless base_dir == cur_dir

.toys/ci.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def find_changed_files base_sha
105105
exec(["git", "fetch", "--depth=1", "origin", base_sha])
106106
base_sha = capture(["git", "show", "--no-patch", "--format=%H", base_sha]).strip
107107
else
108-
base_sha = result.captured_out
108+
base_sha = result.captured_out.strip
109109
end
110110
capture(["git", "diff", "--name-only", base_sha]).split("\n").map(&:strip)
111111
end

0 commit comments

Comments
 (0)