Compare commits

...
3 Commits
Author SHA1 Message Date
Benoit Daloze bb6434c747 Add non-null check 2025-07-26 10:58:48 +02:00
Jason Frey ba9e71c195 Add printing of the lockfile after installation
Closes #783
2025-07-26 10:58:48 +02:00
Benoit Daloze 0ecad18fe5 Revert "Add printing of the lockfile after installation"
This reverts commit e8621f0b86.
2025-07-25 22:09:19 +02:00
3 changed files with 20 additions and 4 deletions
+12
View File
@@ -240,6 +240,18 @@ jobs:
ruby-version: '2.6' ruby-version: '2.6'
- run: ruby -v - run: ruby -v
testNoGemfileWithBundlerCache:
name: "Test with no Gemfile but with bundler-cache"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rm Gemfile
- uses: ./
with:
ruby-version: '2.6'
bundler-cache: true
- run: ruby -v
testLatestRubygemsVersion: testLatestRubygemsVersion:
name: "Test rubygems: latest on ${{ matrix.ruby }}" name: "Test rubygems: latest on ${{ matrix.ruby }}"
runs-on: ubuntu-latest runs-on: ubuntu-latest
Generated Vendored
+4 -2
View File
@@ -85351,8 +85351,10 @@ async function setupRuby(options = {}) {
await common.time('bundle install', async () => await common.time('bundle install', async () =>
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version'])) bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
await core.group(`Print lockfile`, async () => if (lockFile !== null && fs.existsSync(lockFile)) {
await exec.exec('cat', [lockFile])) await core.group(`Print lockfile`, async () =>
await exec.exec('cat', [lockFile]))
}
} }
core.setOutput('ruby-prefix', rubyPrefix) core.setOutput('ruby-prefix', rubyPrefix)
+4 -2
View File
@@ -100,8 +100,10 @@ export async function setupRuby(options = {}) {
await common.time('bundle install', async () => await common.time('bundle install', async () =>
bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version'])) bundler.bundleInstall(gemfile, lockFile, platform, engine, version, bundlerVersion, inputs['cache-version']))
await core.group(`Print lockfile`, async () => if (lockFile !== null && fs.existsSync(lockFile)) {
await exec.exec('cat', [lockFile])) await core.group(`Print lockfile`, async () =>
await exec.exec('cat', [lockFile]))
}
} }
core.setOutput('ruby-prefix', rubyPrefix) core.setOutput('ruby-prefix', rubyPrefix)