Skip to content

Commit ba9e71c

Browse files
Fryguyeregon
authored andcommitted
Add printing of the lockfile after installation
Closes #783
1 parent 0ecad18 commit ba9e71c

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,18 @@ jobs:
240240
ruby-version: '2.6'
241241
- run: ruby -v
242242

243+
testNoGemfileWithBundlerCache:
244+
name: "Test with no Gemfile but with bundler-cache"
245+
runs-on: ubuntu-latest
246+
steps:
247+
- uses: actions/checkout@v4
248+
- run: rm Gemfile
249+
- uses: ./
250+
with:
251+
ruby-version: '2.6'
252+
bundler-cache: true
253+
- run: ruby -v
254+
243255
testLatestRubygemsVersion:
244256
name: "Test rubygems: latest on ${{ matrix.ruby }}"
245257
runs-on: ubuntu-latest

dist/index.js

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

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ export async function setupRuby(options = {}) {
9999
if (inputs['bundler-cache'] === 'true') {
100100
await common.time('bundle install', async () =>
101101
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
102+
103+
if (fs.existsSync(lockFile)) {
104+
await core.group(`Print lockfile`, async () =>
105+
await exec.exec('cat', [lockFile]))
106+
}
102107
}
103108

104109
core.setOutput('ruby-prefix', rubyPrefix)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy