Skip to content

Commit 95f1121

Browse files
author
Abdur Rahman
authored
Add appraisals (#25)
* wip * add gemfiles/* to gitignore * run dev tests for all active-record versions * testing ci for all ruby and active-rcord combinations * appraisal install * cleanup * addressing comments * bump up the gem version
1 parent 0e7dcb2 commit 95f1121

File tree

6 files changed

+29
-25
lines changed

6 files changed

+29
-25
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,16 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
ruby-version:
18-
- 3.0
19-
- 3.1
20-
- 3.2
21-
active-record-version:
22-
- 6.1.0
23-
- 7.0.0
24-
- 7.1.0
25-
exclude:
26-
- ruby-version: 3.2
27-
active-record-version: 6.0.0
28-
- ruby-version: 3.2
29-
active-record-version: 6.1.0
30-
- ruby-version: 3.2
31-
active-record-version: 7.0.0
32-
- ruby-version: 3.1
33-
active-record-version: 6.0.0
34-
- ruby-version: 3.1
35-
active-record-version: 6.1.0
36-
- ruby-version: 3.0
37-
active-record-version: 6.0.0
38-
env:
39-
ACTIVE_RECORD_VERSION: "${{ matrix.active-record-version }}"
18+
- "3.0"
19+
- "3.1"
20+
- "3.2"
4021
steps:
4122
- uses: actions/checkout@v4
4223
- uses: ruby/setup-ruby@v1
4324
with:
4425
ruby-version: "${{ matrix.ruby-version }}"
4526
bundler-cache: true
4627
- name: Run tests
47-
run: bundle exec rspec --format documentation
28+
run: |
29+
bundle exec appraisal install
30+
bundle exec appraisal rspec --format documentation

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ build/
2626

2727
Gemfile.lock
2828

29+
# Do not copy generated appraisal Gemfiles
30+
gemfiles/*
31+
2932
# for a library or gem, you might want to ignore these files since the code is
3033
# intended to run in multiple environments; otherwise, check them in:
3134
# Gemfile.lock

Appraisals

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
appraise "activerecord-6.1" do
2+
gem "activerecord", "~> 6.1.0"
3+
gem "concurrent-ruby", "1.3.4"
4+
end
5+
6+
appraise "activerecord-7.0" do
7+
gem "activerecord", "~> 7.0.0"
8+
gem "concurrent-ruby", "1.3.4"
9+
end
10+
11+
appraise "activerecord-7.1" do
12+
gem "activerecord", "~> 7.1.0"
13+
gem "concurrent-ruby"
14+
end

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ else
1515
end
1616

1717
gem "activerecord", ar
18+
19+
group :development, :test do
20+
gem "appraisal", "2.5.0"
21+
end

dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ setup:
88
commands:
99
test:
1010
summary: Run the project's specs
11-
command: bundle exec rspec spec/
11+
command: bundle exec appraisal rspec spec/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module InheritanceIntegerType
2-
VERSION = "0.2.0"
2+
VERSION = "0.2.1"
33
end

0 commit comments

Comments
 (0)