Skip to content

Commit cc42498

Browse files
committed
Env must be set on job level
This is likely the issue for cache to not include correct Gemfile and reuse set of conflicting gem versions.
1 parent 3cfdda1 commit cc42498

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/protobuf_nested_struct_mutate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
mutate:
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 120
16+
env:
17+
RUBYOPT: "--enable-frozen-string-literal"
1618
steps:
1719
- uses: actions/checkout@v4
1820
with:
@@ -23,5 +25,3 @@ jobs:
2325
ruby-version: ruby-3.4
2426
bundler-cache: true
2527
- run: bin/mutant run
26-
env:
27-
RUBYOPT: "--enable-frozen-string-literal"

.github/workflows/protobuf_nested_struct_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
matrix:
1919
ruby: [ruby-3.4, ruby-3.3, ruby-3.2]
2020
gemfile: [Gemfile, Gemfile.google_protobuf_3_25]
21+
env:
22+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
23+
RUBYOPT: "--enable-frozen-string-literal"
2124
steps:
2225
- uses: actions/checkout@v4
2326
with:
@@ -28,6 +31,3 @@ jobs:
2831
ruby-version: "${{ matrix.ruby }}"
2932
bundler-cache: true
3033
- run: bin/rspec
31-
env:
32-
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
33-
RUBYOPT: "--enable-frozen-string-literal"

0 commit comments

Comments
 (0)