Skip to content

Commit

Permalink
switch from Appraisal to Bundler::Multilock
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer committed Sep 14, 2023
1 parent 0acce72 commit 97a60f5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 49 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ruby
name: Continuous Integration

on:
push:
Expand All @@ -8,14 +8,13 @@ on:

jobs:
test:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby-version: [3.0, 2.7]
gemfile: ['gemfiles/rails_7.0.gemfile']
ruby-version: [2.7, "3.0", 3.1, 3.2]
lockfile: ['Gemfile.rails-7.0.lock']

services:
postgres:
Expand All @@ -38,14 +37,14 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
BUNDLE_LOCKFILE: ${{ matrix.lockfile }}
- name: Run tests
run: bin/rspec
env:
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
BUNDLE_LOCKFILE: ${{ matrix.lockfile }}
lint:
runs-on: ubuntu-latest

Expand Down
5 changes: 0 additions & 5 deletions Appraisals

This file was deleted.

9 changes: 9 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@

source "https://rubygems.org"

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

Plugin.send(:load_plugin, "bundler-multilock")

gemspec

lockfile "rails-7.0", default: true do
gem "activerecord", "~> 7.0.0"
end
4 changes: 2 additions & 2 deletions gemfiles/rails_7.0.gemfile.lock → Gemfile.rails-7.0.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PATH
remote: ..
remote: .
specs:
activerecord-pg-extensions (0.5.3)
activerecord (~> 7.0.0)
Expand Down Expand Up @@ -158,4 +158,4 @@ DEPENDENCIES
rubocop-rspec (~> 2.3)

BUNDLED WITH
2.2.17
2.4.19
29 changes: 0 additions & 29 deletions bin/appraisal

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/rails_7.0.gemfile

This file was deleted.

0 comments on commit 97a60f5

Please sign in to comment.