Skip to content

Commit

Permalink
update bundler-multilock, and remove duplicated lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer committed Oct 10, 2023
1 parent 4fae6ae commit cba27b4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 201 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
ruby-version: [2.7, "3.0", 3.1, 3.2]
lockfile: ['Gemfile.rails-7.0.lock', 'Gemfile.rails-7.1.lock']
lockfile: ['Gemfile.lock', 'Gemfile.rails-7.0.lock']

services:
postgres:
Expand All @@ -36,17 +36,18 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
env:
BUNDLE_LOCKFILE: ${{ matrix.lockfile }}
- name: Run tests
run: bin/rspec
env:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
BUNDLE_LOCKFILE: ${{ matrix.lockfile }}

lint:
runs-on: ubuntu-latest
env:
BUNDLE_LOCKFILE: "Gemfile.lock"

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

plugin "bundler-multilock", "1.1.2"
plugin "bundler-multilock", "1.2.0"
return unless Plugin.installed?("bundler-multilock")

Plugin.send(:load_plugin, "bundler-multilock")
Expand All @@ -14,7 +14,7 @@ lockfile "rails-7.0" do
gem "railties", "~> 7.0.0"
end

lockfile "rails-7.1" do
lockfile do
gem "activerecord", "~> 7.1.0"
gem "railties", "~> 7.1.0"
end
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,12 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
activerecord (~> 7.1.0)
activerecord-pg-extensions!
appraisal (~> 2.4)
debug (~> 1.8)
pg (~> 1.2)
railties (~> 7.1.0)
rake (~> 13.0)
rspec (~> 3.0)
rubocop-inst (~> 1)
Expand Down
196 changes: 0 additions & 196 deletions Gemfile.rails-7.1.lock

This file was deleted.

0 comments on commit cba27b4

Please sign in to comment.