Skip to content

Commit da5cc6a

Browse files
committed
💚 Use custom gemfile for test
1 parent fba48b5 commit da5cc6a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ jobs:
9999
ore list
100100
echo "==> ore check:"
101101
ore check
102+
echo "==> Smoke a Rake"
103+
bundle exec rake -T
102104
103105
104106
# Test the action with ore gem installation (Compiled Extensions)
@@ -236,13 +238,22 @@ jobs:
236238
test-fallback:
237239
name: Test Fallback (${{ matrix.ruby }})
238240
runs-on: ubuntu-latest
241+
env:
242+
BUNDLE_GEMFILE: TestGemfile
239243
strategy:
240244
fail-fast: false
241245
matrix:
242246
ruby: ['3.1', 'jruby', 'truffleruby', '4.0', 'head']
243247
steps:
244248
- uses: actions/checkout@v5
245249

250+
- name: Create test Gemfile
251+
run: |
252+
cat > ${{ env.BUNDLE_GEMFILE }} << 'EOF'
253+
source 'https://gem.coop'
254+
gem 'rake'
255+
EOF
256+
246257
- name: Setup Ruby (should use fallback)
247258
uses: ./
248259
with:
@@ -264,3 +275,5 @@ jobs:
264275
gem --version
265276
echo "==> Bundler version:"
266277
bundle --version
278+
echo "==> Smoke a Rake"
279+
bundle exec rake -T

0 commit comments

Comments
 (0)