Skip to content

Commit ffd5b4c

Browse files
committed
test ruby 4
1 parent 2b6fc4f commit ffd5b4c

File tree

10 files changed

+273
-275
lines changed

10 files changed

+273
-275
lines changed

.github/workflows/release_ruby_gem.yml

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
type: string
1515
description: Tag to create
1616
required: True
17+
push:
18+
branches:
19+
- max/ruby-4-support
1720
concurrency: ${{ github.workflow }}
1821

1922
permissions:
@@ -29,7 +32,7 @@ jobs:
2932
- uses: oxidize-rb/actions/setup-ruby-and-rust@main
3033
with:
3134
rubygems: latest
32-
ruby-version: "3.1"
35+
ruby-version: "4.0"
3336
bundler-cache: false
3437
cargo-cache: false
3538
cargo-vendor: false
@@ -57,7 +60,7 @@ jobs:
5760

5861
- uses: ruby/setup-ruby@v1
5962
with:
60-
ruby-version: "3.1"
63+
ruby-version: "4.0"
6164
bundler-cache: true
6265
working-directory: rspec-trunk-flaky-tests
6366

@@ -92,7 +95,7 @@ jobs:
9295
with:
9396
platform: ${{ matrix.platform }}
9497
working-directory: rspec-trunk-flaky-tests
95-
ruby-versions: 3.0,3.1,3.2,3.3,3.4
98+
ruby-versions: 3.0,3.1,3.2,3.3,3.4,4.0
9699

97100
- uses: actions/upload-artifact@v4
98101
with:
@@ -107,7 +110,7 @@ jobs:
107110
needs: [ci-data, cross-gem]
108111
strategy:
109112
matrix:
110-
ruby-version: ["3.0", "3.1", "3.2", "3.3", "3.4"]
113+
ruby-version: ["3.0", "3.1", "3.2", "3.3", "3.4", "4.0"]
111114
platform:
112115
- name: x86_64-linux
113116
os: ubuntu-latest
@@ -126,25 +129,3 @@ jobs:
126129
trunk-token: ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }}
127130
platform: ${{ matrix.platform.name }}
128131
artifact-pattern: cross-gem-${{ matrix.platform.name }}
129-
130-
publish_ruby_gem:
131-
runs-on: ubuntu-latest
132-
needs: test-ruby-gem
133-
steps:
134-
- uses: actions/checkout@v4
135-
136-
- uses: rubygems/configure-rubygems-credentials@main
137-
with:
138-
role-to-assume: ${{ secrets.RUBY_GEMS_OIDC }}
139-
- uses: actions/download-artifact@v4
140-
with:
141-
pattern: cross-gem-*
142-
path: rspec-trunk-flaky-tests/pkg/
143-
merge-multiple: true
144-
- working-directory: rspec-trunk-flaky-tests
145-
run: |
146-
set -euxo pipefail
147-
find pkg
148-
for i in $(ls pkg/*.gem); do
149-
gem push $i
150-
done

.github/workflows/smoke_test_main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
types:
1010
- staging-release
1111
- production-release
12+
push:
13+
branches:
14+
- max/ruby-4-support
1215

1316
jobs:
1417
build_cli:
@@ -153,7 +156,7 @@ jobs:
153156
- name: Setup Ruby
154157
uses: ruby/setup-ruby@v1
155158
with:
156-
ruby-version: "3.4"
159+
ruby-version: "4.0"
157160
bundler-cache: true
158161
working-directory: rspec-trunk-flaky-tests
159162

@@ -195,7 +198,7 @@ jobs:
195198
with:
196199
platform: x86_64-linux
197200
working-directory: rspec-trunk-flaky-tests
198-
ruby-versions: "3.4"
201+
ruby-versions: "4.0"
199202

200203
- name: Upload gem artifact
201204
uses: actions/upload-artifact@v4
@@ -222,7 +225,7 @@ jobs:
222225
- name: Run Ruby gem smoke tests
223226
uses: ./.github/actions/test_ruby_gem_uploads
224227
with:
225-
ruby-version: "3.4"
228+
ruby-version: "4.0"
226229
trunk-token: ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }}
227230
trunk-public-api-address: https://api.trunk-staging.io
228231
trunk-org-slug: trunk-staging-org
@@ -246,7 +249,7 @@ jobs:
246249
- name: Run Ruby gem smoke tests
247250
uses: ./.github/actions/test_ruby_gem_uploads
248251
with:
249-
ruby-version: "3.4"
252+
ruby-version: "4.0"
250253
trunk-token: ${{ secrets.TRUNK_PROD_ORG_API_TOKEN }}
251254
trunk-public-api-address: https://api.trunk.io
252255
trunk-org-slug: trunk

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

context/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ thiserror = "1.0.63"
3232
tsify-next = { version = "0.5.4", optional = true }
3333
uuid = { version = "1.10.0", features = ["v5"] }
3434
wasm-bindgen = { version = "0.2.95", optional = true }
35-
magnus = { version = "0.7.1", optional = true, default-features = false }
35+
magnus = { version = "0.8.2", optional = true, default-features = false }
3636
proto = { path = "../proto" }
3737
prost-wkt-types = { version = "0.5.1", features = ["vendored-protox"] }
3838
tracing = "0.1.41"

0 commit comments

Comments
 (0)