From af9a415eb952b2d73e886ca09655f0ac79b545c0 Mon Sep 17 00:00:00 2001 From: Masood Ahmad <112746559+MSD118@users.noreply.github.com> Date: Mon, 16 Feb 2026 13:34:21 +0530 Subject: [PATCH 1/2] Fix CI configuration by commenting out bundler-cache and ensuring deployment unset before installing dependencies --- .github/workflows/brakeman.yml | 8 +++++++- .github/workflows/ci.yml | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/brakeman.yml b/.github/workflows/brakeman.yml index 5befad7..449b2a6 100644 --- a/.github/workflows/brakeman.yml +++ b/.github/workflows/brakeman.yml @@ -14,7 +14,13 @@ jobs: # Not needed with a .ruby-version file ruby-version: 2.7.2 # runs 'bundle install' and caches installed gems automatically - bundler-cache: true + # bundler-cache: true + + - name: unset deployment + run: bundle config unset deployment + + - name: Install dependencies + run: bundle install - name: Brakeman install run: gem install brakeman -v 5.4.1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3488f86..5e16c64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,13 @@ jobs: # Not needed with a .ruby-version file ruby-version: 2.7.2 # runs 'bundle install' and caches installed gems automatically - bundler-cache: true + # bundler-cache: true + + - name: unset deployment + run: bundle config unset deployment + + - name: Install dependencies + run: bundle install - name: Run tests run: bundle exec rspec spec From f34b3c7bd6deee9514df9b6172b8e8fada076bc7 Mon Sep 17 00:00:00 2001 From: Masood Ahmad <112746559+MSD118@users.noreply.github.com> Date: Mon, 16 Feb 2026 13:40:56 +0530 Subject: [PATCH 2/2] Fix CI and Brakeman workflows by ensuring BUNDLE_DEPLOYMENT is set to false and restoring bundler-cache --- .github/workflows/brakeman.yml | 10 +++------- .github/workflows/ci.yml | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/brakeman.yml b/.github/workflows/brakeman.yml index 449b2a6..0f1a161 100644 --- a/.github/workflows/brakeman.yml +++ b/.github/workflows/brakeman.yml @@ -5,6 +5,8 @@ on: [push] jobs: brakeman: runs-on: ubuntu-latest + env: + BUNDLE_DEPLOYMENT: false steps: - uses: actions/checkout@v2 @@ -14,13 +16,7 @@ jobs: # Not needed with a .ruby-version file ruby-version: 2.7.2 # runs 'bundle install' and caches installed gems automatically - # bundler-cache: true - - - name: unset deployment - run: bundle config unset deployment - - - name: Install dependencies - run: bundle install + bundler-cache: true - name: Brakeman install run: gem install brakeman -v 5.4.1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e16c64..f0578d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ env: jobs: test: runs-on: ubuntu-latest + env: + BUNDLE_DEPLOYMENT: false steps: - uses: actions/checkout@v2 @@ -18,13 +20,7 @@ jobs: # Not needed with a .ruby-version file ruby-version: 2.7.2 # runs 'bundle install' and caches installed gems automatically - # bundler-cache: true - - - name: unset deployment - run: bundle config unset deployment - - - name: Install dependencies - run: bundle install + bundler-cache: true - name: Run tests run: bundle exec rspec spec