Skip to content

Commit 9446c8a

Browse files
will this work?
1 parent be4cfce commit 9446c8a

1 file changed

Lines changed: 7 additions & 30 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,6 @@ jobs:
3434
- name: Run RuboCop
3535
run: bundle exec rake rubocop
3636
test:
37-
name: Ruby ${{ matrix.ruby }}
38-
runs-on: ubuntu-latest
39-
env:
40-
BUNDLE_WITHOUT: benchmark
41-
strategy:
42-
fail-fast: false # don't fail all matrix builds if one fails
43-
matrix:
44-
ruby:
45-
- '3.1'
46-
- '3.2'
47-
- '3.3'
48-
- '3.4'
49-
- '4.0'
50-
- 'head'
51-
- truffleruby-head
52-
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
53-
steps:
54-
- uses: actions/checkout@v6
55-
- uses: ruby/setup-ruby@v1
56-
with:
57-
ruby-version: ${{ matrix.ruby }}
58-
bundler-cache: true
59-
60-
- name: Run tests
61-
run: bundle exec rake test
62-
test-with-lazy-load:
6337
name: Ruby ${{ matrix.ruby }}
6438
runs-on: ubuntu-latest
6539
env:
@@ -75,6 +49,9 @@ jobs:
7549
- '4.0'
7650
- 'head'
7751
- truffleruby-head
52+
include:
53+
- FAKER_LAZY_LOAD: '1'
54+
- FAKER_LAZY_LOAD: '0'
7855
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
7956
steps:
8057
- uses: actions/checkout@v6
@@ -83,7 +60,7 @@ jobs:
8360
ruby-version: ${{ matrix.ruby }}
8461
bundler-cache: true
8562

86-
- name: Run tests with lazy load enabled
87-
env:
88-
LAZY_LOAD: 1
89-
run: bundle exec rake test
63+
- name: Run tests
64+
run: |
65+
echo "Faker lazy load is ${{ matrix.FAKER_LAZY_LOAD }}"
66+
${{ matrix.FAKER_LAZY_LOAD }} bundle exec rake test

0 commit comments

Comments
 (0)